From anonymous, 1 Month ago, written in Plain Text.
Embed
  1. In [10]: import enum
  2.  
  3. In [11]: class E(enum.IntEnum):
  4.     ...:     a = 1
  5.     ...:     b = 2
  6.     ...:
  7.  
  8. In [12]: type(E)
  9. Out[12]: <class 'enum.EnumMeta'>
  10.  
  11. In [14]: type(E.a)
  12. Out[14]: <enum 'E'>