class documentation

class TypeAnalyzerPluginInterface: (source)

Known subclasses: mypy.typeanal.TypeAnalyser

View In Hierarchy

Interface for accessing semantic analyzer functionality in plugins. Methods docstrings contain only basic info. Look for corresponding implementation docstrings in typeanal.py for more details.

Method analyze_callable_args Find types, kinds, and names of arguments from extended callable syntax.
Method analyze_type Analyze an unbound type using the default mypy logic.
Method fail Emit an error message at given location.
Method named_type Construct an instance of a builtin type with given name.
Class Variable options Undocumented
@abstractmethod
def analyze_callable_args(self, arglist: TypeList) -> tuple[list[Type], list[ArgKind], list[str|None]]|None: (source)

Find types, kinds, and names of arguments from extended callable syntax.

@abstractmethod
def analyze_type(self, typ: Type) -> Type: (source)

Analyze an unbound type using the default mypy logic.

@abstractmethod
def fail(self, msg: str, ctx: Context, *, code: ErrorCode|None = None): (source)

Emit an error message at given location.

@abstractmethod
def named_type(self, name: str, args: list[Type]) -> Instance: (source)

Construct an instance of a builtin type with given name.

Undocumented