stubber.publish.enums

Enumerations for the stubber package.

Classes

PackageType

The type of build tool used to package the stubs.

StubSource

str(object='') -> str

Module Contents

class stubber.publish.enums.PackageType

Bases: str, enum.Enum

The type of build tool used to package the stubs.

POETRY = 'poetry'

Use Poetry as the build tool (default, backward-compatible)

HATCH = 'hatch'

Use Hatchling as the build tool (modern PEP 517 build backend)

__str__()

Return str(self).

__repr__()

Return repr(self).

class stubber.publish.enums.StubSource

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

FIRMWARE = 'MCU stubs'

stubs built by combining firmware-derived stubs (also referred to as firmware stubs), frozen, and core stubs

FROZEN = 'Frozen stubs'

stubs of python modules that are frozen as part of the firmware image

CORE = 'Core stubs'

stubs that allow (some) MicroPython code to be run by CPython

DOC = 'Doc stubs'

stubs built by parsing the micropython RST documentation files

MERGED = 'Merged stubs'

stubs built by merging the information from doc-stubs and firmware stubs

__str__()

Return str(self).

__repr__()

Return repr(self).