Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

refactor: Improve type annotations and use python 3.10+ syntax#14943

Open
argoarsiks wants to merge 1 commit intofastapi:masterfrom
argoarsiks:refactor/type-annotations
Open

refactor: Improve type annotations and use python 3.10+ syntax#14943
argoarsiks wants to merge 1 commit intofastapi:masterfrom
argoarsiks:refactor/type-annotations

Conversation

@argoarsiks
Copy link
Contributor

  • ANN204: add missing return type annotations in fastapi/security/
  • UP038: useX | Y syntax for isinstance calls

@codspeed-hq
Copy link

codspeed-hqbot commentedFeb 19, 2026
edited
Loading

Merging this PR willnot alter performance

✅ 20 untouched benchmarks


Comparingargoarsiks:refactor/type-annotations (1f89f7b) withmaster (faee822)1

Open in CodSpeed

Footnotes

  1. No successful run was found onmaster (c441583) during the generation of this report, so faee822 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.



def is_union_of_base_models(field_type:Any) -> bool:
def is_union_of_base_models(field_type:type) -> bool:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

mypy check...............................................................Failed- hook id: local-mypy- exit code: 1  fastapi/dependencies/utils.py:866: error: Argument 1 to "is_union_of_base_models" has incompatible type "type[Any] | None"; expected "type"  [arg-type]  Found 1 error in 1 file (checked 47 source files)

@argoarsiksargoarsiksforce-pushed therefactor/type-annotations branch from5f006e5 to1f89f7bCompareFebruary 19, 2026 13:11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@YuriiMotovYuriiMotovYuriiMotov left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@argoarsiks@YuriiMotov

[8]ページ先頭

©2009-2026 Movatter.jp