MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / has_cls

Method has_cls

lib/sqlalchemy/orm/decl_base.py:2152–2154  ·  view source on GitHub ↗
(cls, class_: Type[Any])

Source from the content-addressed store, hash-verified

2150
2151 @classmethod
2152 def has_cls(cls, class_: Type[Any]) -> bool:
2153 # 2.6 fails on weakref if class_ is an old style class
2154 return isinstance(class_, type) and weakref.ref(class_) in cls._configs
2155
2156 @classmethod
2157 def raise_unmapped_for_cls(cls, class_: Type[Any]) -> NoReturn:

Callers 3

_inspect_decl_metaFunction · 0.80
_declared_mapping_infoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected