Lines Matching refs:IntEnum
33 sets of names and values: :class:`Enum`, :class:`IntEnum`, :class:`Flag`, and
42 .. class:: IntEnum
327 members are not integers (but see `IntEnum`_ below)::
344 (again, :class:`IntEnum` was explicitly designed to behave differently, see
558 IntEnum section in Derived Enumerations
562 :class:`int`. Members of an :class:`IntEnum` can be compared to integers;
566 >>> from enum import IntEnum
567 >>> class Shape(IntEnum):
571 >>> class Request(IntEnum):
584 >>> class Shape(IntEnum):
595 :class:`IntEnum` values behave like integers in other ways you'd expect::
716 recommended, since :class:`IntEnum` and :class:`IntFlag` break some
718 thus by transitivity to other unrelated enumerations). :class:`IntEnum`
727 While :class:`IntEnum` is part of the :mod:`enum` module, it would be very
730 class IntEnum(int, Enum):
739 :class:`Enum` itself in the sequence of bases, as in the :class:`IntEnum`
750 `%i` or `%h` for IntEnum) treat the enum member as its mixed-in type.
793 While :class:`Enum`, :class:`IntEnum`, :class:`IntFlag`, and :class:`Flag` are
927 An ordered enumeration that is not based on :class:`IntEnum` and so maintains