You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 beenum.auto()
or a tuple directly containing a call toenum.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 whenenum.auto
didn't support tuples, but it is confusing the way it's currently stated.The text was updated successfully, but these errors were encountered: