mongkok / fastapi-debug-toolbar

A debug toolbar for FastAPI.
https://fastapi-debug-toolbar.domake.io
BSD 3-Clause "New" or "Revised" License
138 stars 14 forks source link

Update sqlalchemy.py #41

Closed fsecada01 closed 8 months ago

fsecada01 commented 9 months ago

Adding import from contextlib due to breakage with Fastapi V1.0.6 and onwards

fsecada01 commented 9 months ago

@mongkok can you review and approve?

fsecada01 commented 9 months ago

Closes https://github.com/mongkok/fastapi-debug-toolbar/issues/40

fsecada01 commented 8 months ago

@mongkok Following up.

fsecada01 commented 8 months ago

Bug Fix commit made in the main branch. Closing.

mongkok commented 8 months ago

Thank you for your contribution @fsecada01, just need to add async_exit_stack to solve_dependencies() function, see https://github.com/tiangolo/fastapi/commit/a4aa79e0b4cacc6b428d415d04d234a8c77af9d5.