MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _inspect_mapped_object

Function _inspect_mapped_object

lib/sqlalchemy/orm/base.py:428–432  ·  view source on GitHub ↗
(instance: _T)

Source from the content-addressed store, hash-verified

426
427@inspection._inspects(object)
428def _inspect_mapped_object(instance: _T) -> Optional[InstanceState[_T]]:
429 try:
430 return instance_state(instance)
431 except (exc.UnmappedClassError,) + exc.NO_STATE:
432 return None
433
434
435def _class_to_mapper(

Callers 1

object_stateFunction · 0.85

Calls 1

instance_stateFunction · 0.85

Tested by

no test coverage detected