deferred: bool = False,
raiseload: bool = False,
comparator_factory: Optional[Type[PropComparator[_T]]] = None,
- descriptor: Optional[Any] = None,
active_history: bool = False,
expire_on_flush: bool = True,
info: Optional[_InfoType] = None,
flush, that is, has any kind of "dirty" state within a flush.
Setting this parameter to ``False`` will have the effect of
leaving any existing value present after the flush proceeds.
- Note however that the :class:`.Session` with default expiration
+ Note that the :class:`.Session` with default expiration
settings still expires
all attributes after a :meth:`.Session.commit` call, however.
deferred=deferred,
raiseload=raiseload,
comparator_factory=comparator_factory,
- descriptor=descriptor,
active_history=active_history,
expire_on_flush=expire_on_flush,
info=info,
from typing import Mapping
from typing import NoReturn
from typing import Optional
+from typing import Sequence
from typing import Tuple
from typing import Type
from typing import TYPE_CHECKING
from ._typing import _RegistryType
from .decl_api import declared_attr
from .instrumentation import ClassManager
+ from ..sql.elements import NamedColumn
from ..sql.schema import MetaData
from ..sql.selectable import FromClause
cls: Type[Any]
classname: str
- properties: util.OrderedDict[str, MapperProperty[Any]]
+ properties: util.OrderedDict[
+ str,
+ Union[
+ Sequence[NamedColumn[Any]], NamedColumn[Any], MapperProperty[Any]
+ ],
+ ]
declared_attr_reg: Dict[declared_attr[Any], Any]
@classmethod
"deferred",
"instrument",
"comparator_factory",
- "descriptor",
"active_history",
"expire_on_flush",
"_creation_order",
deferred: bool = False,
raiseload: bool = False,
comparator_factory: Optional[Type[PropComparator[_T]]] = None,
- descriptor: Optional[Any] = None,
active_history: bool = False,
expire_on_flush: bool = True,
info: Optional[_InfoType] = None,
if comparator_factory is not None
else self.__class__.Comparator
)
- self.descriptor = descriptor
self.active_history = active_history
self.expire_on_flush = expire_on_flush