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

Simplify the implementation oftyping.Annotated #105509

Closed
Assignees
AlexWaygood
Labels
3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancement
@AlexWaygood

Description

@AlexWaygood

Feature or enhancement

typing.Annotated is currently implemented as a class, but doesn't need to be. All other objects like it in thetyping module are implemented as instances oftyping._SpecialForm, and we can do the same here. This simplifies the code a lot (making it easier to maintain in the future), and should also beslightly more performant.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp