TypeVarInfo

class TypeVarInfo(name: str, lineno: int, kind: str, source_str: str)[source]

Bases: object

Metadata for a TypeVar, ParamSpec, TypeVarTuple, TypeAlias, or NewType declaration.

Parameters:
  • name (str)

  • lineno (int)

  • kind (str) – One of "TypeVar", "ParamSpec", "TypeVarTuple", "TypeAlias", "NewType".

  • source_str (str) – Unparsed right-hand side expression (for TypeVar/NewType) or the aliased type expression (for TypeAlias).

name: str
lineno: int
kind: str
source_str: str
__init__(name: str, lineno: int, kind: str, source_str: str) None

See also

Public API reference — overview of all public names.