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

Multiple issues with enum __add_(value_)alias_ documentation #136672

Open
Labels
docsDocumentation in the Doc dir
@srittau

Description

@srittau

Documentation

Enum._add_alias_ and_add_value_alias_ were added in Python 3.13, but this is not clearly pointed out in the documentation:

https://docs.python.org/3/library/enum.html#enum.EnumType._add_alias_

There is an "Added in version 3.13" marker way down in theSupported _sunder_ names section, but this is unlikely to be discovered by someone looking at the documentation here.

Also, these methods are documented as being members ofEnumType, while in reality, they are members ofEnum:

Python3.13.3 (main,Apr112025,16:08:36) [GCC13.3.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>importenum>>>enum.EnumType._add_alias_Traceback (mostrecentcalllast):File"<python-input-1>",line1,in<module>enum.EnumType._add_alias_AttributeError:typeobject'EnumType'hasnoattribute'_add_alias_'>>>enum.Enum._add_alias_<functionEnum._add_alias_at0x784229e71120>

Finally, examples for these functions would help to understand their purpose.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp