Browse Source

🎨 Auto format

pull/13264/head
pre-commit-ci-lite[bot] 7 months ago
committed by GitHub
parent
commit
990301dc17
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/dependencies/utils.py

2
fastapi/dependencies/utils.py

@ -572,7 +572,7 @@ async def _solve_generator(
cm = asynccontextmanager(dependant.call)(**sub_values)
elif dependant.is_gen_callable:
cm = contextmanager_in_threadpool(contextmanager(dependant.call)(**sub_values))
try:
solved = await stack.enter_async_context(cm)
except RuntimeError as ex:

Loading…
Cancel
Save