Commit 2b0c234
Fix FastAPI 0.119.0+ compatibility by updating imports (#860)
Change request_response import from starlette.routing to fastapi.routing
in both routes.py and openapi.py to use FastAPI's enhanced version with
AsyncExitStack support for dependencies with yield.
Remove upper version constraint on FastAPI (<0.118.0) to allow users to
upgrade to FastAPI 0.119.0 and later versions.
In FastAPI 0.119.0, request_response is no longer a re-export from
Starlette but a custom implementation with additional functionality for
proper dependency lifecycle management.
Fixes #856
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 9fcd92e commit 2b0c234
File tree
5 files changed
+7
-5
lines changed- stac_fastapi
- api/stac_fastapi/api
- types
5 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments