PyDocs

Nav

Development Tools

TypeVar.has_default

typing

method of TypeVar · Added in 3.13
  • TypeVar.has_default()
Return whether or not the type variable has a default value. This is equivalent to checking whether __default__ is not the typing.NoDefault singleton, except that it does not force evaluation of the lazily evaluated default value.
0 Examples
No examples for typing/TypeVar.has_default.
See Also
No see-alsos for typing/TypeVar.has_default
0 Notes
No notes for TypeVar.has_default