MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / has_parent

Function has_parent

lib/sqlalchemy/orm/attributes.py:2597–2603  ·  view source on GitHub ↗

TODO

(
    cls: Type[_O], obj: _O, key: str, optimistic: bool = False
)

Source from the content-addressed store, hash-verified

2595
2596
2597def has_parent(
2598 cls: Type[_O], obj: _O, key: str, optimistic: bool = False
2599) -> bool:
2600 """TODO"""
2601 manager = manager_of_class(cls)
2602 state = instance_state(obj)
2603 return manager.has_parent(state, key, optimistic)
2604
2605
2606def _register_attribute(

Callers

nothing calls this directly

Calls 3

manager_of_classFunction · 0.85
instance_stateFunction · 0.85
has_parentMethod · 0.80

Tested by

no test coverage detected