Skip to content

Conversation

@sunank200
Copy link
Collaborator

This PR fixes a NameError: name 'HTTPAuthorizationCredentials' is not defined error that occurred when FastAPI tried to evaluate type annotations at runtime during test collection.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Dec 4, 2025
@sunank200 sunank200 self-assigned this Dec 4, 2025
@sunank200 sunank200 added the full tests needed We need to run full set of tests for this PR to merge label Dec 4, 2025
runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
@sunank200 sunank200 force-pushed the fix/http-authorization-credentials-import branch from 1027e97 to ac24047 Compare December 4, 2025 15:07
@amoghrajesh amoghrajesh added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Dec 4, 2025
@amoghrajesh amoghrajesh merged commit d3bc5b9 into apache:main Dec 4, 2025
229 of 230 checks passed
@amoghrajesh amoghrajesh deleted the fix/http-authorization-credentials-import branch December 4, 2025 16:29
github-actions bot pushed a commit that referenced this pull request Dec 4, 2025
…NG block to (#59048)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Dec 4, 2025
…NG block to (apache#59048)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
potiuk pushed a commit that referenced this pull request Dec 4, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
@potiuk potiuk mentioned this pull request Dec 4, 2025
1 task
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
…pache#59048)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 9, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 11, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 12, 2025
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Jan 6, 2026
…NG block to (#59048) (#59056)

Runtime imports to fix NameError when FastAPI evaluates type annotations
at runtime.
(cherry picked from commit d3bc5b9)

Co-authored-by: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants