Section: Typing and enums

Enum

python
python
from enum import Enum

class Status(Enum):
    OPEN = "open"
    CLOSED = "closed"

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Typing and enums
Type alias
Type alias
OpenIn sheetpythonsame section
Typed dict
Typed dict
OpenIn sheetpythonsame section
Optional type
Optional type
OpenIn sheetpythonsame section
Generic list alias
Generic list alias
OpenIn sheetpythonsame section
Parse JSON
Parse JSON
OpenIn sheetpython1 tag match
Dump JSON pretty
Dump JSON pretty
OpenIn sheetpython1 tag match