| Class |
AnyType |
The type 'Any'. |
| Class |
CallableArgument |
Represents a Arg(type, 'name') inside a Callable's type list. |
| Class |
CallableType |
Type of a non-overloaded callable object (such as function). |
| Class |
DeletedType |
Type of deleted variables. |
| Class |
EllipsisType |
The type ... (ellipsis). |
| Class |
ErasedType |
Placeholder for an erased type. |
| Class |
FunctionLike |
Abstract base class for function types. |
| Class |
HasTypeVars |
Undocumented |
| Class |
Instance |
An instance type of form C[T1, ..., Tn]. |
| Class |
InstantiateAliasVisitor |
Undocumented |
| Class |
LiteralType |
The type of a Literal instance. Literal[Value] |
| Class |
NoneType |
The type of 'None'. |
| Class |
Overloaded |
Overloaded function type T1, ... Tn, where each Ti is CallableType. |
| Class |
ParamSpecFlavor |
Undocumented |
| Class |
ParamSpecType |
Type that refers to a ParamSpec. |
| Class |
PartialType |
Type such as List[?] where type arguments are unknown, or partial None type. |
| Class |
PlaceholderType |
Temporary, yet-unknown type during semantic analysis. |
| Class |
ProperType |
Not a type alias. |
| Class |
RawExpressionType |
A synthetic type representing some arbitrary expression that does not cleanly translate into a type. |
| Class |
RequiredType |
Required[T] or NotRequired[T]. Only usable at top-level of a TypedDict definition. |
| Class |
StarType |
The star type *type_parameter. |
| Class |
TupleType |
The tuple type Tuple[T1, ..., Tn] (at least one type argument). |
| Class |
Type |
Abstract base class for all types. |
| Class |
TypeAliasType |
A type alias to another type. |
| Class |
TypedDictType |
Type of TypedDict object {'k1': v1, ..., 'kn': vn}. |
| Class |
TypeGuardedType |
Only used by find_isinstance_check() etc. |
| Class |
TypeList |
Information about argument types and names [...]. |
| Class |
TypeOfAny |
This class describes different types of Any. Each 'Any' can be of only one type at a time. |
| Class |
TypeStrVisitor |
Visitor for pretty-printing types into strings. |
| Class |
TypeType |
For types like Type[User]. |
| Class |
TypeVarId |
Undocumented |
| Class |
TypeVarLikeType |
Undocumented |
| Class |
TypeVarType |
Type that refers to a type variable. |
| Class |
UnboundType |
Instance type that has not been bound during semantic analysis. |
| Class |
UninhabitedType |
This type has no members. |
| Class |
UnionType |
The union type Union[T1, ..., Tn] (at least one type argument). |
| Class |
UnrollAliasVisitor |
Undocumented |
| Function |
callable_with_ellipsis |
Construct type Callable[..., ret_type]. |
| Function |
copy_type |
Build a copy of the type; used to mutate the copy with truthiness information |
| Function |
deserialize_type |
Undocumented |
| Function |
flatten_nested_unions |
Flatten nested unions in a type list. |
| Function |
get_proper_type |
Get the expansion of a type alias type. |
| Function |
get_proper_types |
Undocumented |
| Function |
has_type_vars |
Check if a type contains any type variables (recursively). |
| Function |
is_generic_instance |
Undocumented |
| Function |
is_literal_type |
Check if this type is a LiteralType with the given fallback type and value. |
| Function |
is_named_instance |
Undocumented |
| Function |
is_optional |
Undocumented |
| Function |
is_union_with_any |
Is this a union with Any or a plain Any type? |
| Function |
remove_optional |
Undocumented |
| Function |
replace_alias_tvars |
Replace type variables in a generic type alias tp with substitutions subs resetting context. Length of subs should be already checked. |
| Function |
strip_type |
Make a copy of type without 'debugging info' (function name). |
| Function |
union_items |
Return the flattened items of a union type. |
| Constant |
deserialize_map |
Undocumented |
| Constant |
names |
Undocumented |
| Constant |
NOT_READY |
Undocumented |
| Constant |
T |
Undocumented |
| Constant |
TP |
Undocumented |
| Constant |
TPDICT_FB_NAMES |
Undocumented |
| Constant |
TPDICT_NAMES |
Undocumented |
| Variable |
FormalArgument |
Undocumented |
| Variable |
JsonDict |
Undocumented |
| Variable |
LiteralValue |
Undocumented |
| Constant |
_dummy |
Undocumented |