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

Method get_module

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

Source from the content-addressed store, hash-verified

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

Callers 2

add_classFunction · 0.80
remove_classFunction · 0.80

Calls 2

_ModuleMarkerClass · 0.85
castFunction · 0.85

Tested by

no test coverage detected