Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enum.auto evaluation context description unclear #118342

Open
layday opened this issue Apr 27, 2024 · 0 comments
Open

enum.auto evaluation context description unclear #118342

layday opened this issue Apr 27, 2024 · 0 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@layday
Copy link

layday commented Apr 27, 2024

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.

@layday layday added the docs Documentation in the Doc dir label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants