Return the :class:`.Session` to which an object belongs. This is an alias of :func:`.object_session`.
(cls, instance: object)
| 230 | |
| 231 | @classmethod |
| 232 | def object_session(cls, instance: object) -> Optional[Session]: |
| 233 | """Return the :class:`.Session` to which an object belongs. |
| 234 | |
| 235 | This is an alias of :func:`.object_session`. |
| 236 | |
| 237 | """ |
| 238 | |
| 239 | return object_session(instance) |
| 240 | |
| 241 | |
| 242 | class SessionTransactionState(_StateChangeState): |
nothing calls this directly
no test coverage detected