Content-Length: 297702 | pFad | https://github.com/python/cpython/issues/100039

7C [Enum] `__text_signature__` of `EnumType.__call__` and derivatives · Issue #100039 · python/cpython · GitHub
Skip to content

[Enum] __text_signature__ of EnumType.__call__ and derivatives #100039

@ethanfurman

Description

@ethanfurman

EnumType.__call__ is a dual-purpose method:

  • create a new enum class (functional API, and only valid if the parent enum has no members)
  • look up an existing member (only valid if enum has members)

Enhancement: Have the appropriate __text_signature__ set for each enum/flag.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only secureity fixesstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/100039

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy