TODO
(
cls: Type[_O], obj: _O, key: str, optimistic: bool = False
)
| 2568 | |
| 2569 | |
| 2570 | def 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 | |
| 2579 | def register_attribute( |
nothing calls this directly
no test coverage detected