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): (source)
Find types, kinds, and names of arguments from extended callable syntax.
Parameters
arglist:TypeListUndocumented
Returns
Optional[Tuple[List[Type], List[ArgKind], List[Optional[str]]]]Undocumented
@abstractmethod
def analyze_type(self, typ): (source)
Analyze an unbound type using the default mypy logic.
Parameters
typ:TypeUndocumented
Returns
TypeUndocumented
@abstractmethod
def fail(self, msg, ctx, *, code=None): (source)
Emit an error message at given location.
Parameters
msg:strUndocumented
ctx:ContextUndocumented
code:Optional[ErrorCode]Undocumented
@abstractmethod
def named_type(self, name, args): (source)
Construct an instance of a builtin type with given name.
Parameters
name:strUndocumented
args:List[Type]Undocumented
Returns
InstanceUndocumented
options: Options = (source)

Undocumented