module documentation

Type visitor classes. This module defines the type visitors that are intended to be subclassed by other code. They have been separated out into their own module to ease converting mypy to run under mypyc, since currently mypyc-extension classes can extend interpreted classes but not the other way around. Separating them out, then, allows us to compile types before we can compile everything that uses a TypeVisitor. The visitors are all re-exported from mypy.types and that is how other modules refer to them.

Class BoolTypeQuery Visitor for performing recursive queries of types with a bool result.
Class SyntheticTypeVisitor A TypeVisitor that also knows how to visit synthetic AST constructs.
Class TypeQuery Visitor for performing queries of types.
Class TypeTranslator Identity type transformation.
Class TypeVisitor Visitor class for types (Type subclasses).
Constant ALL_STRATEGY Undocumented
Constant ANY_STRATEGY Undocumented
Type Variable T Undocumented
ALL_STRATEGY: int = (source)

Undocumented

Value
1
ANY_STRATEGY: int = (source)

Undocumented

Value
0

Undocumented

Value
TypeVar('T')