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 | 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 | T |
Undocumented |