MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __exit__

Method __exit__

lib/sqlalchemy/orm/session.py:1813–1814  ·  view source on GitHub ↗
(self, type_: Any, value: Any, traceback: Any)

Source from the content-addressed store, hash-verified

1811 return self
1812
1813 def __exit__(self, type_: Any, value: Any, traceback: Any) -> None:
1814 self.close()
1815
1816 @contextlib.contextmanager
1817 def _maker_context_manager(self: _S) -> Iterator[_S]:

Callers 3

run_as_contextmanagerFunction · 0.45
pytest_runtest_teardownFunction · 0.45

Calls 1

closeMethod · 0.95

Tested by 1

pytest_runtest_teardownFunction · 0.36