MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _inspect_decl_meta

Function _inspect_decl_meta

lib/sqlalchemy/orm/decl_api.py:2186–2191  ·  view source on GitHub ↗
(cls: Type[Any])

Source from the content-addressed store, hash-verified

2184 DeclarativeMeta, DeclarativeBase, DeclarativeAttributeIntercept
2185)
2186def _inspect_decl_meta(cls: Type[Any]) -> Optional[Mapper[Any]]:
2187 mp: Optional[Mapper[Any]] = _inspect_mapped_class(cls)
2188 if mp is None:
2189 if _DeferredDeclarativeConfig.has_cls(cls):
2190 _DeferredDeclarativeConfig.raise_unmapped_for_cls(cls)
2191 return mp
2192
2193
2194@compat_typing.dataclass_transform(

Callers

nothing calls this directly

Calls 3

_inspect_mapped_classFunction · 0.85
has_clsMethod · 0.80

Tested by

no test coverage detected