Uh oh!
There was an error while loading. Please reload this page.
Change starlette import to fastapi - #60382
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
Uh oh!
There was an error while loading. Please reload this page.
jason810496
left a comment
There was a problem hiding this comment.
Thanks for the PR! LGTM overall.
https://github.com/apache/airflow/actions/runs/20886590921/job/60010997219?pr=60382 Some static checks still need fix, thanks!
4adbff6 to
84652d4CompareUh oh!
There was an error while loading. Please reload this page.
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Description
This PR change
starletteimport tofastapi,fastapire-exportstarlettedependencies for convenience and consistency, we should use it if possible.However, the following starlette imports must remain because FastAPI does not re-export these modules:
BaseHTTPMiddlewareWhy: FastAPI intentionally does not re-export
BaseHTTPMiddleware. There is nofastapi.middleware.basemodule.References:
BaseHTTPMiddlewareto FastAPI was answered with: "Is there a particular reason you don't just import it directly from Starlette, since FastAPI depends on Starlette?" (marked as accepted answer)BaseHTTPMiddleware.Was generative AI tooling used to co-author this PR?
Generated-by: [Cursor, Claude] following the guidelines