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

Method _attr_has_impl

lib/sqlalchemy/orm/instrumentation.py:313–319  ·  view source on GitHub ↗

Return True if the given attribute is fully initialized. i.e. has an impl.

(self, key: str)

Source from the content-addressed store, hash-verified

311 return default
312
313 def _attr_has_impl(self, key: str) -> bool:
314 """Return True if the given attribute is fully initialized.
315
316 i.e. has an impl.
317 """
318
319 return key in self and self[key].impl is not None
320
321 def _subclass_manager(self, cls: Type[_T]) -> ClassManager[_T]:
322 """Create a new ClassManager for a subclass of this ClassManager's

Callers 2

post_instrument_classMethod · 0.80
_register_attributeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected