PyDocs

Nav

Development Tools

TypeVar.__constraints__

typing

attribute of TypeVar
A tuple containing the constraints of the type variable, if any.
Changed in 3.12
  • 3.12: For type variables created through type parameter syntax, the constraints are evaluated only when the attribute is accessed, not when the type variable is created (see Lazy evaluation).
0 Examples
No examples for typing/TypeVar.__constraints__.
See Also
No see-alsos for typing/TypeVar.__constraints__
0 Notes
No notes for TypeVar.__constraints__