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

Lib/typing.py Missing field _name for _AnnotatedAlias #96079

Closed
Labels
@iyume

Description

@iyume

Bug report

Relate to:https://github.com/python/cpython/blob/main/Lib/typing.py#L2102

_AnnotatedAlias should givename="Annotated" to _GenericAlias

The cpython main branch add the__getattr__ to define a different behaviour from _GenericAlias

I wonder if this is a bug.

To perform a runtime check, I can only usesys.version_info >= (3, 9) and isinstance(obj, _AnnotatedAlias)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp