(self, state: InstanceState[Any], obj: object)
| 4441 | return True |
| 4442 | |
| 4443 | def _after_attach(self, state: InstanceState[Any], obj: object) -> None: |
| 4444 | state.session_id = self.hash_key |
| 4445 | if state.modified and state._strong_obj is None: |
| 4446 | state._strong_obj = obj |
| 4447 | self.dispatch.after_attach(self, state) |
| 4448 | |
| 4449 | if state.key: |
| 4450 | self.dispatch.detached_to_persistent(self, state) |
| 4451 | else: |
| 4452 | self.dispatch.transient_to_pending(self, state) |
| 4453 | |
| 4454 | def __contains__(self, instance: object) -> bool: |
| 4455 | """Return True if the instance is associated with this session. |
no test coverage detected