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

Method __getattr__

lib/sqlalchemy/orm/clsregistry.py:403–404  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

401 self.metadata = metadata
402
403 def __getattr__(self, key: str) -> Table:
404 return self.metadata.tables[_get_table_key(key, self.key)]
405
406
407def _determine_container(key: str, value: Any) -> _GetColumns:

Callers

nothing calls this directly

Calls 1

_get_table_keyFunction · 0.85

Tested by

no test coverage detected