diff options
| author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-03-26 15:18:17 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 15:18:17 (GMT) |
| commit | 79be75735c9d77972112cecc8d7e1af28c176ed0 (patch) | |
| tree | 243cf7ff18185b4aeb4f213c4571bc7e26793116 /Lib/enum.py | |
| parent | 70969d53a77a8a190c40a30419e772bc874a4f62 (diff) | |
| download | cpython-79be75735c9d77972112cecc8d7e1af28c176ed0.zip cpython-79be75735c9d77972112cecc8d7e1af28c176ed0.tar.gz cpython-79be75735c9d77972112cecc8d7e1af28c176ed0.tar.bz2 | |
gh-115775: Compiler adds __static_attributes__ field to classes (#115913)
Diffstat (limited to 'Lib/enum.py')
| -rw-r--r-- | Lib/enum.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 5c5e711..2a135e1 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -2018,7 +2018,8 @@ def _test_simple_enum(checked_enum, simple_enum): + list(simple_enum._member_map_.keys()) ) for key in set(checked_keys + simple_keys): - if key in ('__module__', '_member_map_', '_value2member_map_', '__doc__'): + if key in ('__module__', '_member_map_', '_value2member_map_', '__doc__', + '__static_attributes__'): # keys known to be different, or very long continue elif key in member_names: |
