class SemanticAnalyzerInterface(SemanticAnalyzerCoreInterface): (source)
Known subclasses: mypy.semanal.SemanticAnalyzer
A limited abstract interface to some generic semantic analyzer pass 2 functionality.
We use this interface for various reasons:
| Method | accept |
Undocumented |
| Method | add_symbol |
Add symbol to the current symbol table. |
| Method | add_symbol_skip_local |
Add symbol to the current symbol table, skipping locals. |
| Method | add_symbol_table_node |
Add node to the current symbol table. |
| Method | anal_type |
Undocumented |
| Method | basic_new_typeinfo |
Undocumented |
| Method | current_symbol_table |
Get currently active symbol table. |
| Method | is_func_scope |
Undocumented |
| Method | lookup |
Undocumented |
| Method | named_type |
Undocumented |
| Method | named_type_or_none |
Undocumented |
| Method | parse_bool |
Undocumented |
| Method | qualified_name |
Undocumented |
| Method | schedule_patch |
Undocumented |
| Property | is_typeshed_stub_file |
Undocumented |
Inherited from SemanticAnalyzerCoreInterface:
| Method | defer |
Undocumented |
| Method | fail |
Undocumented |
| Method | is_future_flag_set |
Is the specific __future__ feature imported |
| Method | is_incomplete_namespace |
Is a module or class namespace potentially missing some definitions? |
| Method | lookup_fully_qualified |
Undocumented |
| Method | lookup_fully_qualified_or_none |
Undocumented |
| Method | lookup_qualified |
Undocumented |
| Method | note |
Undocumented |
| Method | record_incomplete_ref |
Undocumented |
| Property | final_iteration |
Is this the final iteration of semantic analysis? |
| Property | is_stub_file |
Undocumented |
mypy.semanal.SemanticAnalyzer| Parameters | |
name:str | Undocumented |
node:SymbolNode | Undocumented |
context:Context | Undocumented |
module_public:bool | Undocumented |
module_hidden:bool | Undocumented |
can_defer:bool | Undocumented |
| Returns | |
bool | Undocumented |
mypy.semanal.SemanticAnalyzerAdd symbol to the current symbol table, skipping locals.
This is used to store symbol nodes in a symbol table that is going to be serialized (local namespaces are not serialized). See implementation docstring for more details.
| Parameters | |
name:str | Undocumented |
node:SymbolNode | Undocumented |
mypy.semanal.SemanticAnalyzer| Parameters | |
name:str | Undocumented |
stnode:SymbolTableNode | Undocumented |
| Returns | |
bool | Undocumented |
mypy.semanal.SemanticAnalyzerUndocumented
| Parameters | |
t:Type | Undocumented |
tvar_scope:Optional[ | Undocumented |
allow_tuple_literal:bool | Undocumented |
allow_unbound_tvars:bool | Undocumented |
allow_required:bool | Undocumented |
report_invalid_types:bool | Undocumented |
| Returns | |
Optional[ | Undocumented |
mypy.semanal.SemanticAnalyzerGet currently active symbol table.
May be module, class, or local namespace.
| Returns | |
SymbolTable | Undocumented |
mypy.semanal.SemanticAnalyzerUndocumented
| Parameters | |
name:str | Undocumented |
ctx:Context | Undocumented |
suppress_errors:bool | Undocumented |
| Returns | |
Optional[ | Undocumented |
mypy.semanal.SemanticAnalyzerUndocumented
| Parameters | |
expr:Expression | Undocumented |
| Returns | |
Optional[ | Undocumented |
mypy.semanal.SemanticAnalyzerUndocumented
| Parameters | |
n:str | Undocumented |
| Returns | |
str | Undocumented |
mypy.semanal.SemanticAnalyzerUndocumented
| Parameters | |
priority:int | Undocumented |
fn:Callable[ | Undocumented |