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