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

Method __getattribute__

lib/sqlalchemy/orm/util.py:1316–1325  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

1314
1315 @util.preload_module("sqlalchemy.orm.decl_api")
1316 def __getattribute__(self, name):
1317 decl_api = util.preloaded.orm.decl_api
1318
1319 subject = object.__getattribute__(self, "subject")
1320 if name in subject.__dict__ and isinstance(
1321 subject.__dict__[name], decl_api.declared_attr
1322 ):
1323 return subject.__dict__[name].fget(subject)
1324 else:
1325 return getattr(subject, name)
1326
1327
1328class LoaderCriteriaOption(CriteriaOption):

Callers

nothing calls this directly

Calls 1

fgetMethod · 0.45

Tested by

no test coverage detected