class_docstr: Type variable.
class_docstr_tok: ["Type","variable","."]
code: def __init__(
      self,
      name,
      *constraints,
      bound=None,
      covariant=False,
      contravariant=False,
      default=None,
      infer_variance=False,
  ):
      super().__init__(
          name,
          *constraints,
          bound=bound,
          covariant=covariant,
          contravariant=contravariant,
      )
      _DefaultMixin.__init__(self, default)
      self.__infer_variance__ = infer_variance
  
      # for pickling:
      try:
          def_mod = sys._getframe(1).f_globals.get(
              "__name__", "__main__"
          )
      except (AttributeError, ValueError):
          def_mod = None
      if def_mod != "typing_extensions":
          self.__module__ = def_mod
  
imports: import abc
  import collections
  import collections.abc
  import functools
  import operator
  import sys
  import types
  import typing
label_desc: Use image node_id 1 to create a new TypeVar object from inherited base classes: typing, _DefaultMixin with example: obj = TypeVar(name)