MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_module

Method get_module

lib/sqlalchemy/orm/clsregistry.py:299–305  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

297 return self.mod_ns.__getattr__(key)
298
299 def get_module(self, name: str) -> _ModuleMarker:
300 if name not in self.contents:
301 marker = _ModuleMarker(name, self)
302 self.contents[name] = marker
303 else:
304 marker = cast(_ModuleMarker, self.contents[name])
305 return marker
306
307 def add_class(self, name: str, cls: Type[Any]) -> None:
308 if name in self.contents:

Callers 2

_add_classFunction · 0.80
_remove_classFunction · 0.80

Calls 2

_ModuleMarkerClass · 0.85
castFunction · 0.50

Tested by

no test coverage detected