Skip to content

Remove duplicate TYPE_CHECKING imports in FAB auth manager roles.py#2

Closed
Copilot wants to merge 4 commits intocommon-routerfrom
copilot/sub-pr-1
Closed

Remove duplicate TYPE_CHECKING imports in FAB auth manager roles.py#2
Copilot wants to merge 4 commits intocommon-routerfrom
copilot/sub-pr-1

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 10, 2026

RoleBody and RoleResponse were imported twice in roles.py - once in the regular imports block and again under TYPE_CHECKING, causing redundant code.

Changes:

  • Removed the TYPE_CHECKING block containing duplicate imports of RoleBody and RoleResponse
  • Kept the regular imports from datamodels.roles which are sufficient for both runtime and type checking

The types are used directly in function signatures at runtime, so conditional imports under TYPE_CHECKING were unnecessary.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Centralize FastAPI auth manager routing fab: centralize FastAPI auth manager routing Feb 10, 2026
Copilot AI requested a review from henry3260 February 10, 2026 09:55
Copilot stopped work on behalf of henry3260 due to an error February 10, 2026 11:09
Copilot AI and others added 2 commits February 10, 2026 11:12
Co-authored-by: henry3260 <108824346+henry3260@users.noreply.github.com>
Co-authored-by: henry3260 <108824346+henry3260@users.noreply.github.com>
Copilot AI changed the title fab: centralize FastAPI auth manager routing Remove duplicate TYPE_CHECKING imports in FAB auth manager roles.py Feb 10, 2026
henry3260 pushed a commit that referenced this pull request Feb 11, 2026
) (apache#60734)

* dag_processing: initialize versioned bundles for callbacks (apache#52040)

* Apply suggestion from @amoghrajesh

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>

* Apply suggestion from @amoghrajesh

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>

* Apply suggestion from @amoghrajesh

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>

* Add unit tests for callback handling and improve logging in Dag processing

* fix CI static checks #2

---------

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
@henry3260 henry3260 force-pushed the common-router branch 5 times, most recently from fcfd02b to a6c5167 Compare February 13, 2026 14:15
@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Mar 31, 2026
@github-actions github-actions bot closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants