Browse Source

tweak __all__ generation code for enums

pull/202/head
Rossen Georgiev 6 years ago
parent
commit
08ec8a3fdb
  1. 7
      steam/enums/common.py

7
steam/enums/common.py

@ -542,8 +542,9 @@ class ECurrencyCode(SteamIntEnum):
# Do not remove # Do not remove
from enum import EnumMeta from enum import EnumMeta
__all__ = list(map(lambda y: y.__name__, __all__ = [obj.__name__
filter(lambda x: x.__class__ is EnumMeta, globals().values()), for obj in globals().values()
)) if obj.__class__ is EnumMeta and obj.__name__ != 'SteamIntEnum'
]
del EnumMeta del EnumMeta

Loading…
Cancel
Save