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

Method __exit__

docs_src/dependencies/tutorial010_py310.py:8–9  ·  view source on GitHub ↗
(self, exc_type, exc_value, traceback)

Source from the content-addressed store, hash-verified

6 return self.db
7
8 def __exit__(self, exc_type, exc_value, traceback):
9 self.db.close()
10
11
12async def get_db():

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected