PyDocs

Nav

Development Tools

NoDefault

typing

data · Added in 3.13
A sentinel object used to indicate that a type parameter has no default value. For example:
1 Example
>>> T = TypeVar("T")
>>> T.__default__ is typing.NoDefault
True
>>> S = TypeVar("S", default=None)
>>> S.__default__ is None
True
from the Python docs
See Also
No see-alsos for typing/NoDefault
0 Notes
No notes for NoDefault