Class | SemanticAnalyzerCoreInterface |
A core abstract interface to generic semantic analyzer functionality. |
Class | SemanticAnalyzerInterface |
A limited abstract interface to some generic semantic analyzer pass 2 functionality. |
Function | calculate_tuple_fallback |
Calculate a precise item type for the fallback of a tuple type. |
Function | create_indirect_imported_name |
Create symbol table entry for a name imported from another module. |
Function | set_callable_name |
Undocumented |
Constant | PRIORITY_FALLBACKS |
Undocumented |
Calculate a precise item type for the fallback of a tuple type.
This must be called only after the main semantic analysis pass, since joins aren't available before that.
Note that there is an apparent chicken and egg problem with respect to verifying type arguments against bounds. Verifying bounds might require fallbacks, but we might use the bounds to calculate the fallbacks. In practice this is not a problem, since the worst that can happen is that we have invalid type argument values, and these can happen in later stages as well (they will generate errors, but we don't prevent their existence).
Parameters | |
typ:TupleType | Undocumented |
Create symbol table entry for a name imported from another module.
These entries act as indirect references.
Parameters | |
file_node:MypyFile | Undocumented |
module:str | Undocumented |
relative:int | Undocumented |
imported_name:str | Undocumented |
Returns | |
Optional[ | Undocumented |