qimpy.io.Default

class Default(value)

Bases: Generic[T]

Typed default value for a function argument. Use as a sentinel to specify a default value, instead of None. This allows passing in a default value, and keeping track of whether the argument was explicitly passed in or a default within the function.

Parameters:

value (T) –

__init__(value)
Parameters:

value (T) –

Return type:

None

Methods

__init__

Attributes

value

The underlying default value

value: T

The underlying default value