mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix enum.py for RustPython
This commit is contained in:
1 file changed
+1
-1
Vendored
+1
-1
@@ -157,7 +157,7 @@ class EnumMeta(type):
|
||||
|
||||
# save attributes from super classes so we know if we can take
|
||||
# the shortcut of storing members in the class dict
|
||||
base_attributes = {a for b in enum_class.mro() for a in b.__dict__}
|
||||
base_attributes = {a for b in enum_class.mro() for a in dir(b)} # XXX modified for rustpython
|
||||
|
||||
# Reverse value->name map for hashable values.
|
||||
enum_class._value2member_map_ = {}
|
||||
|
||||
Reference in new issue
Block a user