You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] ImportError risk: run_in_threadpool from starlette.concurrency may not be available in all environments #374
Describe the bug
The code imports run_in_threadpool from starlette.concurrency, but this import may fail or be unavailable in some environments or with older Starlette versions.
To Reproduce
Steps to reproduce the behavior:
Use a version of Starlette that does not provide run_in_threadpool.
Run the code or tests.
Observe an ImportError at startup or during execution.
Expected behavior
The code should either:
Check for the presence of run_in_threadpool and provide a fallback, or
Clearly document the minimum required Starlette version in requirements and documentation.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
OS: macOS
FastAPI Utils version : 0.8.0
Starlette version: 0.50.0
Activity