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
{{ message }}
Repository navigation
enum.global_enum: cls_name undefined in global_str #93100
Traceback (most recent call last):
File "/home/florian/tmp/x.py", line 9, in <module>print(str(VAL))
^^^^^^^^
File "/usr/lib/python3.11/enum.py", line 1646, in global_strreturn"%s(%r)"% (cls_name, self._value_)
^^^^^^^^NameError: name 'cls_name' is not defined
(Found by running flake8 over Lib/ out of curiosity, see #93010 (comment))
Your environment
CPython versions tested on: Python 3.11.0b1
Operating system and architecture: Archlinux x86_64
Activity
[3.11] gh-93100: [Enum] fix missing variable in global_str (GH-93107) (…
ethanfurman commentedon May 23, 2022
Fixed.