TODO
(
cls: Type[_O], obj: _O, key: str, optimistic: bool = False
)
| 2595 | |
| 2596 | |
| 2597 | def 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 | |
| 2606 | def _register_attribute( |
nothing calls this directly
no test coverage detected