Skip to content

enums

CompInitMode

Bases: StrEnum

Component initialization mode for Component.

  • DEFAULT: Instantiate by calling the component
  • CALLABLE: Return the callable (or partial with kwargs)
  • DEBUG: Use pdb.runcall for debugging
Source code in src/sparkwheel/utils/enums.py
class CompInitMode(StrEnum):
    """
    Component initialization mode for Component.

    - DEFAULT: Instantiate by calling the component
    - CALLABLE: Return the callable (or partial with kwargs)
    - DEBUG: Use pdb.runcall for debugging
    """

    DEFAULT = "default"
    CALLABLE = "callable"
    DEBUG = "debug"

StrEnum

Bases: str, Enum

String enumeration base class.

Source code in src/sparkwheel/utils/enums.py
6
7
8
9
class StrEnum(str, Enum):
    """String enumeration base class."""

    pass