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

Function has_parent

lib/sqlalchemy/orm/attributes.py:2570–2576  ·  view source on GitHub ↗

TODO

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

Source from the content-addressed store, hash-verified

2568
2569
2570def has_parent(
2571 cls: Type[_O], obj: _O, key: str, optimistic: bool = False
2572) -> bool:
2573 """TODO"""
2574 manager = manager_of_class(cls)
2575 state = instance_state(obj)
2576 return manager.has_parent(state, key, optimistic)
2577
2578
2579def 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