@@ -315,6 +315,7 @@ Data Types
315315 Returns ``['__class__', '__doc__', '__module__', 'name', 'value'] `` and
316316 any public methods defined on *self.__class__ *::
317317
318+ >>> from enum import Enum
318319 >>> from datetime import date
319320 >>> class Weekday(Enum):
320321 ... MONDAY = 1
@@ -341,7 +342,7 @@ Data Types
341342 A *staticmethod * that is used to determine the next value returned by
342343 :class: `auto `::
343344
344- >>> from enum import auto
345+ >>> from enum import auto, Enum
345346 >>> class PowersOfThree(Enum):
346347 ... @staticmethod
347348 ... def _generate_next_value_(name, start, count, last_values):
@@ -373,7 +374,7 @@ Data Types
373374 A *classmethod * for looking up values not found in *cls *. By default it
374375 does nothing, but can be overridden to implement custom search behavior::
375376
376- >>> from enum import StrEnum
377+ >>> from enum import auto, StrEnum
377378 >>> class Build(StrEnum):
378379 ... DEBUG = auto()
379380 ... OPTIMIZED = auto()
@@ -412,6 +413,7 @@ Data Types
412413 Returns the string used for *repr() * calls. By default, returns the
413414 *Enum * name, member name, and value, but can be overridden::
414415
416+ >>> from enum import auto, Enum
415417 >>> class OtherStyle(Enum):
416418 ... ALTERNATE = auto()
417419 ... OTHER = auto()
@@ -428,6 +430,7 @@ Data Types
428430 Returns the string used for *str() * calls. By default, returns the
429431 *Enum * name and member name, but can be overridden::
430432
433+ >>> from enum import auto, Enum
431434 >>> class OtherStyle(Enum):
432435 ... ALTERNATE = auto()
433436 ... OTHER = auto()
@@ -443,6 +446,7 @@ Data Types
443446 Returns the string used for *format() * and *f-string * calls. By default,
444447 returns :meth: `__str__ ` return value, but can be overridden::
445448
449+ >>> from enum import auto, Enum
446450 >>> class OtherStyle(Enum):
447451 ... ALTERNATE = auto()
448452 ... OTHER = auto()
0 commit comments