MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / object

Method object

lib/sqlalchemy/orm/state.py:399–406  ·  view source on GitHub ↗

Return the mapped object represented by this :class:`.InstanceState`. Returns None if the object has been garbage collected

(self)

Source from the content-addressed store, hash-verified

397
398 @property
399 def object(self) -> Optional[_O]:
400 """Return the mapped object represented by this
401 :class:`.InstanceState`.
402
403 Returns None if the object has been garbage collected
404
405 """
406 return self.obj()
407
408 @property
409 def identity(self) -> Optional[Tuple[Any, ...]]:

Calls

no outgoing calls