TODO
(
self, state: InstanceState[_O], key: str, optimistic: bool = False
)
| 544 | return hasattr(instance, self.STATE_ATTR) |
| 545 | |
| 546 | def has_parent( |
| 547 | self, state: InstanceState[_O], key: str, optimistic: bool = False |
| 548 | ) -> bool: |
| 549 | """TODO""" |
| 550 | return self.get_impl(key).hasparent(state, optimistic=optimistic) |
| 551 | |
| 552 | def __bool__(self) -> bool: |
| 553 | """All ClassManagers are non-zero regardless of attribute state.""" |