Lines Matching refs:IntEnum
27 sets of names and values: :class:`Enum`, :class:`IntEnum`, :class:`Flag`, and
36 .. class:: IntEnum
316 members are not integers (but see `IntEnum`_ below)::
333 (again, :class:`IntEnum` was explicitly designed to behave differently, see
547 IntEnum section in Derived Enumerations
551 :class:`int`. Members of an :class:`IntEnum` can be compared to integers;
555 >>> from enum import IntEnum
556 >>> class Shape(IntEnum):
560 >>> class Request(IntEnum):
573 >>> class Shape(IntEnum):
584 :class:`IntEnum` values behave like integers in other ways you'd expect::
705 recommended, since :class:`IntEnum` and :class:`IntFlag` break some
707 thus by transitivity to other unrelated enumerations). :class:`IntEnum`
716 While :class:`IntEnum` is part of the :mod:`enum` module, it would be very
719 class IntEnum(int, Enum):
728 :class:`Enum` itself in the sequence of bases, as in the :class:`IntEnum`
740 `%i` or `%h` for IntEnum) treat the enum member as its mixed-in type.
750 While :class:`Enum`, :class:`IntEnum`, :class:`IntFlag`, and :class:`Flag` are
858 An ordered enumeration that is not based on :class:`IntEnum` and so maintains