(self: _S)
| 1856 | |
| 1857 | @contextlib.contextmanager |
| 1858 | def _maker_context_manager(self: _S) -> Iterator[_S]: |
| 1859 | with self: |
| 1860 | with self.begin(): |
| 1861 | yield self |
| 1862 | |
| 1863 | def in_transaction(self) -> bool: |
| 1864 | """Return True if this :class:`_orm.Session` has begun a transaction. |