MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __exit__

Method __exit__

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

Source from the content-addressed store, hash-verified

1852 return self
1853
1854 def __exit__(self, type_: Any, value: Any, traceback: Any) -> None:
1855 self.close()
1856
1857 @contextlib.contextmanager
1858 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