MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _inspect_mapped_object

Function _inspect_mapped_object

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

Source from the content-addressed store, hash-verified

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

Callers 1

object_stateFunction · 0.85

Calls 1

instance_stateFunction · 0.85

Tested by

no test coverage detected