(self: _S)
| 1815 | |
| 1816 | @contextlib.contextmanager |
| 1817 | def _maker_context_manager(self: _S) -> Iterator[_S]: |
| 1818 | with self: |
| 1819 | with self.begin(): |
| 1820 | yield self |
| 1821 | |
| 1822 | def in_transaction(self) -> bool: |
| 1823 | """Return True if this :class:`_orm.Session` has begun a transaction. |