Skip to content

enum.auto evaluation context description unclear #118342

@layday

Description

@layday

Documentation

Under enum.auto, the docs say that "auto instances are only resolved when at the top level of an assignment". From reading the examples, it looks like the target of the assignment should be enum.auto() or a tuple directly containing a call to enum.auto. I don't know if "top level of an assignment" is alluding to the tuple's parentheses being optional or if it's a remnant from an older version of the docs when enum.auto didn't support tuples, but it is confusing the way it's currently stated.

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy