TODO
(
self, state: InstanceState[_O], key: str, optimistic: bool = False
)
| 552 | return hasattr(instance, self.STATE_ATTR) |
| 553 | |
| 554 | def has_parent( |
| 555 | self, state: InstanceState[_O], key: str, optimistic: bool = False |
| 556 | ) -> bool: |
| 557 | """TODO""" |
| 558 | return self.get_impl(key).hasparent(state, optimistic=optimistic) |
| 559 | |
| 560 | def __bool__(self) -> bool: |
| 561 | """All ClassManagers are non-zero regardless of attribute state.""" |