Upgrading mypy 0.761 to 0.770
Unknown0.761 → 0.770
Fetching 1 release from GitHub…0 / 1
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
function module_not_found(manager: BuildManager, line: int, caller_state: State, target: str) -> None → function module_not_found(manager: BuildManager, line: int, caller_state: State, target: str, reason: ModuleNotFoundReason) -> None - added:
function add_catch_all_gitignore(target_dir: str) -> None - added:
function find_module_with_reason(id: str, manager: BuildManager) -> ModuleSearchResult - added:
variable CORE_BUILTIN_MODULES
- removed:
method TypeChecker.check_no_writable(name: str, base_node: Optional[Node], ctx: Context) -> None - changed:
method TypeChecker.try_infer_partial_generic_type_from_assignment(lvalue: Lvalue, rvalue: Expression) -> None → method TypeChecker.try_infer_partial_generic_type_from_assignment(lvalue: Lvalue, rvalue: Expression, op: str) -> None - added:
class DisjointDict(Generic[TKey, TValue]) - added:
constructor DisjointDict() -> None - added:
field TypeChecker.partial_type_augmented_ops - added:
function collapse_walrus(e: Expression) -> Expression - added:
function group_comparison_operands(pairwise_comparisons: Iterable[Tuple[str, Expression, Expression]], operand_to_literal_hash: Mapping[int, Key], operators_to_group: Set[str]) -> List[Tuple[str, List[int]]] - added:
function is_literal_enum(type_map: Mapping[Expression, Type], n: Expression) -> bool - added:
function reduce_conditional_maps(type_maps: List[Tuple[TypeMap, TypeMap]]) -> Tuple[TypeMap, TypeMap] - added:
method DisjointDict.add_mapping(keys: Set[TKey], values: Set[TValue]) -> None - added:
method DisjointDict.items() -> List[Tuple[Set[TKey], Set[TValue]]] - added:
method TypeChecker.check_if_final_var_override_writable(name: str, base_node: Optional[Node], ctx: Context) -> None - added:
method TypeChecker.conditional_type_map_with_intersection(expr: Expression, expr_type: Type, type_ranges: Optional[List[TypeRange]]) -> Tuple[TypeMap, TypeMap] - added:
method TypeChecker.intersect_instances(instances: Sequence[Instance], ctx: Context) -> Optional[Instance] - added:
method TypeChecker.is_valid_defaultdict_partial_value_type(t: ProperType) -> bool - added:
method TypeChecker.is_writable_attribute(node: Node) -> bool - added:
method TypeChecker.make_fake_typeinfo(curr_module_fullname: str, class_gen_name: str, class_short_name: str, bases: List[Instance]) -> Tuple[ClassDef, TypeInfo] - added:
method TypeChecker.refine_away_none_in_comparison(operands: List[Expression], operand_types: List[Type], chain_indices: List[int], narrowable_operand_indices: AbstractSet[int]) -> Tuple[TypeMap, TypeMap] - added:
method TypeChecker.refine_identity_comparison_expression(operands: List[Expression], operand_types: List[Type], chain_indices: List[int], narrowable_operand_indices: AbstractSet[int], is_valid_target: Callable[[ProperType], bool], coerce_only_in_literal_context: bool) -> Tuple[TypeMap, TypeMap] - added:
method TypeChecker.should_report_unreachable_issues() -> bool - added:
variable TKey - added:
variable TValue
- removed:
function custom_equality_method(typ: Type) -> bool - removed:
function is_literal_type_like(t: Optional[Type]) -> bool - changed:
method ExpressionChecker.find_typeddict_context(context: Optional[Type]) -> Optional[TypedDictType] → method ExpressionChecker.find_typeddict_context(context: Optional[Type], dict_expr: DictExpr) -> Optional[TypedDictType] - added:
function get_partial_instance_type(t: Optional[Type]) -> Optional[PartialType] - added:
method ExpressionChecker.find_partial_type_ref_fast_path(expr: Expression) -> Optional[Type] - added:
method ExpressionChecker.get_partial_var(ref: RefExpr) -> Optional[Tuple[Var, Dict[Var, Context]]] - added:
method ExpressionChecker.match_typeddict_call_with_dict(callee: TypedDictType, kwargs: DictExpr, context: Context) -> bool - added:
method ExpressionChecker.try_infer_partial_value_type_from_call(e: CallExpr, methodname: str, var: Var) -> Optional[Instance] - added:
method ExpressionChecker.validate_typeddict_kwargs(kwargs: DictExpr) -> Optional[OrderedDict[str, Expression]]
- added:
function analyze_enum_class_attribute_access(itype: Instance, name: str, mx: MemberContext) -> Optional[Type]
- removed:
function custom_special_method(typ: Type, name: str, check_all: bool=…) -> bool
- changed:
function parse_config_file(options: Options, filename: Optional[str], stdout: Optional[TextIO]=…, stderr: Optional[TextIO]=…) -> None → function parse_config_file(options: Options, set_strict_flags: Callable[[], None], filename: Optional[str], stdout: Optional[TextIO]=…, stderr: Optional[TextIO]=…) -> None - changed:
function parse_section(prefix: str, template: Options, section: Mapping[str, str], stderr: TextIO=…) -> Tuple[Dict[str, object], Dict[str, str]] → function parse_section(prefix: str, template: Options, set_strict_flags: Callable[[], None], section: Mapping[str, str], stderr: TextIO=…) -> Tuple[Dict[str, object], Dict[str, str]]
- added:
variable UNREACHABLE
- removed:
method Errors.is_typeshed_file(file: str) -> bool
- changed:
method NodeFixer.visit_symbol_table(symtab: SymbolTable) -> None → method NodeFixer.visit_symbol_table(symtab: SymbolTable, table_fullname: str) -> None
- removed:
method FileSystemCache.md5(path: str) -> str - added:
method FileSystemCache.hash_digest(path: str) -> str
- removed:
function pretty_or(args: List[str]) -> str - changed:
function format_type_distinctly(type1: Type, type2: Type, bare: bool=…) -> Tuple[str, str] → function format_type_distinctly(*types: Type, bare: bool=…) -> Tuple[str, ...] - added:
function pretty_seq(args: Sequence[str], conjunction: str) -> str - added:
method MessageBuilder.add_fixture_note(fullname: str, ctx: Context) -> None - added:
method MessageBuilder.impossible_intersection(formatted_base_class_list: str, reason: str, context: Context) -> None - added:
method MessageBuilder.typeddict_context_ambiguous(types: List[TypedDictType], context: Context) -> None - added:
variable SUGGESTED_TEST_FIXTURES - added:
variable TYPES_FOR_UNIMPORTED_HINTS
- changed:
method FindModuleCache.find_module(id: str) -> Optional[str] → method FindModuleCache.find_module(id: str) -> ModuleSearchResult - added:
class ModuleNotFoundReason(Enum) - added:
field ModuleNotFoundReason.FOUND_WITHOUT_TYPE_HINTS - added:
field ModuleNotFoundReason.NOT_FOUND - added:
method ModuleNotFoundReason.error_message_templates() -> Tuple[str, str] - added:
variable ModuleSearchResult
- removed:
function is_py2_std_lib_module(id: str) -> bool - removed:
function is_third_party_module(id: str) -> bool - removed:
variable third_party_modules - added:
function is_std_lib_module(python_version: Tuple[int, int], id: str) -> bool
- added:
field TypeInfo.is_intersection - added:
method ComparisonExpr.pairwise() -> Iterator[Tuple[str, Expression, Expression]]
- removed:
method CheckerPluginInterface.type_context() -> List[Optional[Type]] - removed:
method SemanticAnalyzerPluginInterface.final_iteration() -> bool - added:
property CheckerPluginInterface.type_context -> List[Optional[Type]] - added:
property SemanticAnalyzerPluginInterface.final_iteration -> bool
- added:
function add_method_to_class(api: SemanticAnalyzerPluginInterface, cls: ClassDef, name: str, args: List[Argument], return_type: Type, self_type: Optional[Type]=…, tvar_def: Optional[TypeVarDef]=…) -> None - added:
function deserialize_and_fixup_type(data: Union[str, JsonDict], api: SemanticAnalyzerPluginInterface) -> Type
- changed:
constructor DataclassAttribute(name: str, is_in_init: bool, is_init_var: bool, has_default: bool, line: int, column: int) -> None → constructor DataclassAttribute(name: str, is_in_init: bool, is_init_var: bool, has_default: bool, line: int, column: int, type: Optional[Type]) -> None - changed:
method DataclassAttribute.to_argument(info: TypeInfo) -> Argument → method DataclassAttribute.to_argument() -> Argument - changed:
method DataclassAttribute.to_var(info: TypeInfo) -> Var → method DataclassAttribute.to_var() -> Var - changed:
static method DataclassAttribute.deserialize(info: TypeInfo, data: JsonDict) -> DataclassAttribute → static method DataclassAttribute.deserialize(info: TypeInfo, data: JsonDict, api: SemanticAnalyzerPluginInterface) -> DataclassAttribute
- removed:
method SemanticAnalyzer.add_fixture_note(fullname: str, ctx: Context) -> None - removed:
variable SUGGESTED_TEST_FIXTURES - removed:
variable TYPES_FOR_UNIMPORTED_HINTS - changed:
method SemanticAnalyzer.mark_incomplete(name: str, node: Node, becomes_typeinfo: bool=…) -> None → method SemanticAnalyzer.mark_incomplete(name: str, node: Node, becomes_typeinfo: bool=…, module_public: bool=…, module_hidden: bool=…) -> None - added:
method SemanticAnalyzer.is_overloaded_item(node: SymbolNode, statement: Statement) -> bool - added:
method SemanticAnalyzer.is_textually_before_statement(node: SymbolNode) -> bool
- removed:
method SemanticAnalyzerCoreInterface.final_iteration() -> bool - removed:
method SemanticAnalyzerInterface.is_typeshed_stub_file() -> bool - added:
property SemanticAnalyzerCoreInterface.final_iteration -> bool - added:
property SemanticAnalyzerInterface.is_typeshed_stub_file -> bool
- removed:
function fixup_var(node: Var, replacements: Dict[SymbolNode, SymbolNode]) -> None - added:
method NodeReplaceVisitor.visit_type_alias(node: TypeAlias) -> None
- added:
class Error - added:
class MaybeMissing - added:
class MaybeMissingMeta(type) - added:
class Missing - added:
class Signature(Generic[T]) - added:
constructor Error(object_path: List[str], message: str, stub_object: MaybeMissing[nodes.Node], runtime_object: MaybeMissing[Any], *, stub_desc: Optional[str]=…, runtime_desc: Optional[str]=…) -> None - added:
constructor Signature() -> None - added:
function build_stubs(modules: List[str], options: Options, find_submodules: bool=…) -> List[str] - added:
function get_mypy_type_of_runtime_value(runtime: Any) -> Optional[mypy.types.Type] - added:
function get_stub(module: str) -> Optional[nodes.MypyFile] - added:
function get_typeshed_stdlib_modules(custom_typeshed_dir: Optional[str]) -> List[str] - added:
function get_whitelist_entries(whitelist_file: str) -> Iterator[str] - added:
function is_dunder(name: str, exclude_init: bool=…) -> bool - added:
function is_subtype_helper(left: mypy.types.Type, right: mypy.types.Type) -> bool - added:
function main() -> int - added:
function parse_options(args: List[str]) -> argparse.Namespace - added:
function test_module(module_name: str) -> Iterator[Error] - added:
function test_stubs(args: argparse.Namespace) -> int - added:
function verify(stub: nodes.Node, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
function verify_decorator(stub: nodes.Decorator, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
function verify_funcitem(stub: nodes.FuncItem, runtime: MaybeMissing[types.FunctionType], object_path: List[str]) -> Iterator[Error] - added:
function verify_mypyfile(stub: nodes.MypyFile, runtime: MaybeMissing[types.ModuleType], object_path: List[str]) -> Iterator[Error] - added:
function verify_none(stub: Missing, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
function verify_overloadedfuncdef(stub: nodes.OverloadedFuncDef, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
function verify_typealias(stub: nodes.TypeAlias, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
function verify_typeinfo(stub: nodes.TypeInfo, runtime: MaybeMissing[Type[Any]], object_path: List[str]) -> Iterator[Error] - added:
function verify_typevarexpr(stub: nodes.TypeVarExpr, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
function verify_var(stub: nodes.Var, runtime: MaybeMissing[Any], object_path: List[str]) -> Iterator[Error] - added:
method Error.get_description(concise: bool=…) -> str - added:
method Error.is_missing_stub() -> bool - added:
method Error.is_positional_only_related() -> bool - added:
static method Signature.from_funcitem(stub: nodes.FuncItem) -> Signature[nodes.Argument] - added:
static method Signature.from_inspect_signature(signature: inspect.Signature) -> Signature[inspect.Parameter] - added:
static method Signature.from_overloadedfuncdef(stub: nodes.OverloadedFuncDef) -> Signature[nodes.Argument] - added:
variable MISSING - added:
variable MaybeMissing - added:
variable T
- changed:
function fail_missing(mod: str) -> None → function fail_missing(mod: str, reason: ModuleNotFoundReason) -> None
- changed:
function coerce_to_literal(typ: Type) -> ProperType → function coerce_to_literal(typ: Type) -> Type - added:
function custom_special_method(typ: Type, name: str, check_all: bool=…) -> bool - added:
function is_literal_type_like(t: Optional[Type]) -> bool
- changed:
constructor PartialType(type: Optional[mypy.nodes.TypeInfo], var: mypy.nodes.Var) -> None → constructor PartialType(type: Optional[mypy.nodes.TypeInfo], var: mypy.nodes.Var, value_type: Optional[Instance]=…) -> None - changed:
function flatten_nested_unions(types: Iterable[Type]) -> List[Type] → function flatten_nested_unions(types: Iterable[Type], handle_type_alias_type: bool=…) -> List[Type] - added:
field PartialType.value_type - added:
method LiteralType.can_be_false_default() -> bool - added:
method LiteralType.can_be_true_default() -> bool
- added:
function hash_digest(data: bytes) -> str - added:
function is_typeshed_file(file: str) -> bool
- removed:
variable MYPY
- removed:
variable MYPY
- removed:
variable MYPY
- changed:
function compile_ir_to_c(groups: Groups, modules: ModuleIRs, result: BuildResult, mapper: genops.Mapper, compiler_options: CompilerOptions) -> Dict[Optional[str], List[Tuple[str, str]]] → function compile_ir_to_c(groups: Groups, modules: ModuleIRs, result: BuildResult, mapper: Mapper, compiler_options: CompilerOptions) -> Dict[Optional[str], List[Tuple[str, str]]] - changed:
function compile_modules_to_ir(result: BuildResult, mapper: genops.Mapper, compiler_options: CompilerOptions, errors: Errors) -> ModuleIRs → function compile_modules_to_ir(result: BuildResult, mapper: Mapper, compiler_options: CompilerOptions, errors: Errors) -> ModuleIRs - changed:
function compile_scc_to_ir(scc: List[MypyFile], result: BuildResult, mapper: genops.Mapper, compiler_options: CompilerOptions, errors: Errors) -> ModuleIRs → function compile_scc_to_ir(scc: List[MypyFile], result: BuildResult, mapper: Mapper, compiler_options: CompilerOptions, errors: Errors) -> ModuleIRs - changed:
function load_scc_from_cache(scc: List[MypyFile], result: BuildResult, mapper: genops.Mapper, ctx: DeserMaps) -> ModuleIRs → function load_scc_from_cache(scc: List[MypyFile], result: BuildResult, mapper: Mapper, ctx: DeserMaps) -> ModuleIRs
- added:
class BuildClassIR - added:
constructor BuildClassIR(builder: IRBuilder) -> None - added:
method BuildClassIR.accept(node: Expression) -> Value | (node: Statement) -> None - added:
method BuildClassIR.add(op: Op) -> Value - added:
method BuildClassIR.add_non_ext_class_attr(non_ext: NonExtClassInfo, lvalue: NameExpr, stmt: AssignmentStmt, cdef: ClassDef, attr_to_cache: List[Lvalue]) -> None - added:
method BuildClassIR.allocate_class(cdef: ClassDef) -> Value - added:
method BuildClassIR.cache_class_attrs(attrs_to_cache: List[Lvalue], cdef: ClassDef) -> None - added:
method BuildClassIR.create_mypyc_attrs_tuple(ir: ClassIR, line: int) -> Value - added:
method BuildClassIR.create_ne_from_eq(cdef: ClassDef) -> None - added:
method BuildClassIR.dataclass_finalize(cdef: ClassDef, non_ext: NonExtClassInfo, type_obj: Value) -> None - added:
method BuildClassIR.dataclass_non_ext_info(cdef: ClassDef) -> Optional[NonExtClassInfo] - added:
method BuildClassIR.error(msg: str, line: int) -> None - added:
method BuildClassIR.find_non_ext_metaclass(cdef: ClassDef, bases: Value) -> Value - added:
method BuildClassIR.finish_non_ext_dict(non_ext: NonExtClassInfo, line: int) -> None - added:
method BuildClassIR.gen_glue_ne_method(cls: ClassIR, line: int) -> FuncIR - added:
method BuildClassIR.generate_attr_defaults(cdef: ClassDef) -> None - added:
method BuildClassIR.load_decorated_class(cdef: ClassDef, type_obj: Value) -> Value - added:
method BuildClassIR.load_non_ext_class(ir: ClassIR, non_ext: NonExtClassInfo, line: int) -> Value - added:
method BuildClassIR.load_static_unicode(value: str) -> Value - added:
method BuildClassIR.populate_non_ext_bases(cdef: ClassDef) -> Value - added:
method BuildClassIR.primitive_op(desc: OpDescription, args: List[Value], line: int) -> Value - added:
method BuildClassIR.setup_non_ext_dict(cdef: ClassDef, metaclass: Value, bases: Value) -> Value - added:
method BuildClassIR.visit_class_def(cdef: ClassDef) -> None
- added:
class BuildExpressionIR - added:
constructor BuildExpressionIR(builder: IRBuilder) -> None - added:
method BuildExpressionIR.translate_call(expr: CallExpr, callee: Expression) -> Value - added:
method BuildExpressionIR.translate_cast_expr(expr: CastExpr) -> Value - added:
method BuildExpressionIR.translate_method_call(expr: CallExpr, callee: MemberExpr) -> Value - added:
method BuildExpressionIR.translate_refexpr_call(expr: CallExpr, callee: RefExpr) -> Value - added:
method BuildExpressionIR.translate_super_method_call(expr: CallExpr, callee: SuperExpr) -> Value - added:
method BuildExpressionIR.visit_basic_comparison(op: str, left: Value, right: Value, line: int) -> Value - added:
method BuildExpressionIR.visit_bytes_expr(expr: BytesExpr) -> Value - added:
method BuildExpressionIR.visit_call_expr(expr: CallExpr) -> Value - added:
method BuildExpressionIR.visit_comparison_expr(e: ComparisonExpr) -> Value - added:
method BuildExpressionIR.visit_complex_expr(expr: ComplexExpr) -> Value - added:
method BuildExpressionIR.visit_conditional_expr(expr: ConditionalExpr) -> Value - added:
method BuildExpressionIR.visit_dict_expr(expr: DictExpr) -> Value - added:
method BuildExpressionIR.visit_dictionary_comprehension(o: DictionaryComprehension) -> Value - added:
method BuildExpressionIR.visit_ellipsis(o: EllipsisExpr) -> Value - added:
method BuildExpressionIR.visit_float_expr(expr: FloatExpr) -> Value - added:
method BuildExpressionIR.visit_generator_expr(o: GeneratorExpr) -> Value - added:
method BuildExpressionIR.visit_index_expr(expr: IndexExpr) -> Value - added:
method BuildExpressionIR.visit_int_expr(expr: IntExpr) -> Value - added:
method BuildExpressionIR.visit_list_comprehension(o: ListComprehension) -> Value - added:
method BuildExpressionIR.visit_list_expr(expr: ListExpr) -> Value - added:
method BuildExpressionIR.visit_member_expr(expr: MemberExpr) -> Value - added:
method BuildExpressionIR.visit_name_expr(expr: NameExpr) -> Value - added:
method BuildExpressionIR.visit_op_expr(expr: OpExpr) -> Value - added:
method BuildExpressionIR.visit_set_comprehension(o: SetComprehension) -> Value - added:
method BuildExpressionIR.visit_set_expr(expr: SetExpr) -> Value - added:
method BuildExpressionIR.visit_slice_expr(expr: SliceExpr) -> Value - added:
method BuildExpressionIR.visit_str_expr(expr: StrExpr) -> Value - added:
method BuildExpressionIR.visit_super_expr(o: SuperExpr) -> Value - added:
method BuildExpressionIR.visit_tuple_expr(expr: TupleExpr) -> Value - added:
method BuildExpressionIR.visit_unary_expr(expr: UnaryExpr) -> Value
- added:
class BuildFuncIR - added:
constructor BuildFuncIR(builder: IRBuilder) -> None - added:
method BuildFuncIR.add(op: Op) -> Value - added:
method BuildFuncIR.add_args_to_env(local: bool=…, base: Optional[Union[FuncInfo, ImplicitClass]]=…, reassign: bool=…) -> None - added:
method BuildFuncIR.add_await_to_generator_class(fn_info: FuncInfo) -> None - added:
method BuildFuncIR.add_call_to_callable_class(blocks: List[BasicBlock], sig: FuncSignature, env: Environment, fn_info: FuncInfo) -> FuncIR - added:
method BuildFuncIR.add_close_to_generator_class(fn_info: FuncInfo) -> None - added:
method BuildFuncIR.add_get_to_callable_class(fn_info: FuncInfo) -> None - added:
method BuildFuncIR.add_helper_to_generator_class(blocks: List[BasicBlock], sig: FuncSignature, env: Environment, fn_info: FuncInfo) -> FuncDecl - added:
method BuildFuncIR.add_iter_to_generator_class(fn_info: FuncInfo) -> None - added:
method BuildFuncIR.add_next_to_generator_class(fn_info: FuncInfo, fn_decl: FuncDecl, sig: FuncSignature) -> None - added:
method BuildFuncIR.add_raise_exception_blocks_to_generator_class(line: int) -> None - added:
method BuildFuncIR.add_send_to_generator_class(fn_info: FuncInfo, fn_decl: FuncDecl, sig: FuncSignature) -> None - added:
method BuildFuncIR.add_throw_to_generator_class(fn_info: FuncInfo, fn_decl: FuncDecl, sig: FuncSignature) -> None - added:
method BuildFuncIR.assign(target: Union[Register, AssignmentTarget], rvalue_reg: Value, line: int) -> None - added:
method BuildFuncIR.calculate_arg_defaults(fn_info: FuncInfo, env: Environment, func_reg: Optional[Value]) -> None - added:
method BuildFuncIR.create_switch_for_generator_class() -> None - added:
method BuildFuncIR.emit_yield(val: Value, line: int) -> Value - added:
method BuildFuncIR.enter(fn_info: Union[FuncInfo, str]=…) -> None - added:
method BuildFuncIR.finalize_env_class() -> None - added:
method BuildFuncIR.gen_arg_defaults() -> None - added:
method BuildFuncIR.gen_func_ir(blocks: List[BasicBlock], sig: FuncSignature, env: Environment, fn_info: FuncInfo, cdef: Optional[ClassDef]) -> Tuple[FuncIR, Optional[Value]] - added:
method BuildFuncIR.gen_func_item(fitem: FuncItem, name: str, sig: FuncSignature, cdef: Optional[ClassDef]=…) -> Tuple[FuncIR, Optional[Value]] - added:
method BuildFuncIR.gen_func_ns() -> str - added:
method BuildFuncIR.gen_generator_func() -> None - added:
method BuildFuncIR.gen_glue(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, fdef: FuncItem, *, do_py_ops: bool=…) -> FuncIR - added:
method BuildFuncIR.gen_glue_method(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pycall: bool) -> FuncIR - added:
method BuildFuncIR.gen_glue_property(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pygetattr: bool) -> FuncIR - added:
method BuildFuncIR.get_func_target(fdef: FuncDef) -> AssignmentTarget - added:
method BuildFuncIR.handle_ext_method(cdef: ClassDef, fdef: FuncDef) -> None - added:
method BuildFuncIR.handle_non_ext_method(non_ext: NonExtClassInfo, cdef: ClassDef, fdef: FuncDef) -> None - added:
method BuildFuncIR.handle_yield_from_and_await(o: Union[YieldFromExpr, AwaitExpr]) -> Value - added:
method BuildFuncIR.instantiate_callable_class(fn_info: FuncInfo) -> Value - added:
method BuildFuncIR.instantiate_env_class() -> Value - added:
method BuildFuncIR.instantiate_generator_class() -> Value - added:
method BuildFuncIR.is_decorated(fdef: FuncDef) -> bool - added:
method BuildFuncIR.is_free_variable(symbol: SymbolNode) -> bool - added:
method BuildFuncIR.leave() -> Tuple[List[BasicBlock], Environment, RType, FuncInfo] - added:
method BuildFuncIR.load_decorated_func(fdef: FuncDef, orig_func_reg: Value) -> Value - added:
method BuildFuncIR.load_env_registers() -> None - added:
method BuildFuncIR.load_outer_env(base: Value, outer_env: Environment) -> Value - added:
method BuildFuncIR.load_outer_envs(base: ImplicitClass) -> None - added:
method BuildFuncIR.populate_switch_for_generator_class() -> None - added:
method BuildFuncIR.primitive_op(desc: OpDescription, args: List[Value], line: int) -> Value - added:
method BuildFuncIR.read(target: Union[Value, AssignmentTarget], line: int=…) -> Value - added:
method BuildFuncIR.setup_callable_class() -> None - added:
method BuildFuncIR.setup_env_class() -> ClassIR - added:
method BuildFuncIR.setup_env_for_generator_class() -> None - added:
method BuildFuncIR.setup_func_for_recursive_call(fdef: FuncDef, base: ImplicitClass) -> None - added:
method BuildFuncIR.setup_generator_class() -> ClassIR - added:
method BuildFuncIR.visit_await_expr(o: AwaitExpr) -> Value - added:
method BuildFuncIR.visit_decorator(dec: Decorator) -> None - added:
method BuildFuncIR.visit_func_def(fdef: FuncDef) -> None - added:
method BuildFuncIR.visit_lambda_expr(expr: LambdaExpr) -> Value - added:
method BuildFuncIR.visit_method(cdef: ClassDef, non_ext: Optional[NonExtClassInfo], fdef: FuncDef) -> None - added:
method BuildFuncIR.visit_overloaded_func_def(o: OverloadedFuncDef) -> None - added:
method BuildFuncIR.visit_yield_expr(expr: YieldExpr) -> Value - added:
method BuildFuncIR.visit_yield_from_expr(o: YieldFromExpr) -> Value - added:
property BuildFuncIR.environment -> Environment - added:
property BuildFuncIR.fn_info -> FuncInfo
- removed:
class BaseNonlocalControl(NonlocalControl) - removed:
class CleanupNonlocalControl(NonlocalControl) - removed:
class ExceptNonlocalControl(CleanupNonlocalControl) - removed:
class FinallyNonlocalControl(CleanupNonlocalControl) - removed:
class FuncInfo(object) - removed:
class GeneratorClass(ImplicitClass) - removed:
class GeneratorNonlocalControl(BaseNonlocalControl) - removed:
class ImplicitClass(object) - removed:
class LoopNonlocalControl(NonlocalControl) - removed:
class Mapper - removed:
class NonlocalControl - removed:
class TryFinallyNonlocalControl(NonlocalControl) - removed:
constructor CleanupNonlocalControl(outer: NonlocalControl) -> None - removed:
constructor ExceptNonlocalControl(outer: NonlocalControl, saved: Union[Value, AssignmentTarget]) -> None - removed:
constructor FinallyNonlocalControl(outer: NonlocalControl, ret_reg: Optional[Value], saved: Value) -> None - removed:
constructor FuncInfo(fitem: FuncItem=…, name: str=…, class_name: Optional[str]=…, namespace: str=…, is_nested: bool=…, contains_nested: bool=…, is_decorated: bool=…, in_non_ext: bool=…) -> None - removed:
constructor GeneratorClass(ir: ClassIR) -> None - removed:
constructor ImplicitClass(ir: ClassIR) -> None - removed:
constructor LoopNonlocalControl(outer: NonlocalControl, continue_block: BasicBlock, break_block: BasicBlock) -> None - removed:
constructor Mapper(group_map: Dict[str, Optional[str]]) -> None - removed:
constructor TryFinallyNonlocalControl(target: BasicBlock) -> None - removed:
function build_ir(modules: List[MypyFile], graph: Graph, types: Dict[Expression, Type], mapper: Mapper, options: CompilerOptions, errors: Errors) -> ModuleIRs - removed:
function build_type_map(mapper: Mapper, modules: List[MypyFile], graph: Graph, types: Dict[Expression, Type], options: CompilerOptions, errors: Errors) -> None - removed:
function can_subclass_builtin(builtin_base: str) -> bool - removed:
function compute_vtable(cls: ClassIR) -> None - removed:
function concrete_arg_kind(kind: int) -> int - removed:
function get_func_def(op: Union[FuncDef, Decorator, OverloadedFuncDef]) -> FuncDef - removed:
function get_module_func_defs(module: MypyFile) -> Iterable[FuncDef] - removed:
function get_mypyc_attr_call(d: Expression) -> Optional[CallExpr] - removed:
function get_mypyc_attr_literal(e: Expression) -> Any - removed:
function get_mypyc_attrs(stmt: Union[ClassDef, Decorator]) -> Dict[str, Any] - removed:
function is_dataclass(cdef: ClassDef) -> bool - removed:
function is_dataclass_decorator(d: Expression) -> bool - removed:
function is_extension_class(cdef: ClassDef) -> bool - removed:
function is_trait(cdef: ClassDef) -> bool - removed:
function is_trait_decorator(d: Expression) -> bool - removed:
function is_valid_multipart_property_def(prop: OverloadedFuncDef) -> bool - removed:
function load_type_map(mapper: Mapper, modules: List[MypyFile], deser_ctx: DeserMaps) -> None - removed:
function prepare_class_def(path: str, module_name: str, cdef: ClassDef, errors: Errors, mapper: Mapper) -> None - removed:
function prepare_func_def(module_name: str, class_name: Optional[str], fdef: FuncDef, mapper: Mapper) -> FuncDecl - removed:
function prepare_method_def(ir: ClassIR, module_name: str, cdef: ClassDef, mapper: Mapper, node: Union[FuncDef, Decorator]) -> None - removed:
function prepare_non_ext_class_def(path: str, module_name: str, cdef: ClassDef, errors: Errors, mapper: Mapper) -> None - removed:
function specialize_function(name: str, typ: Optional[RType]=…) -> Callable[[Specializer], Specializer] - removed:
function specialize_parent_vtable(cls: ClassIR, parent: ClassIR) -> VTableEntries - removed:
method BaseNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - removed:
method BaseNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - removed:
method BaseNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - removed:
method CleanupNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - removed:
method CleanupNonlocalControl.gen_cleanup(builder: IRBuilder, line: int) -> None - removed:
method CleanupNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - removed:
method CleanupNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - removed:
method ExceptNonlocalControl.gen_cleanup(builder: IRBuilder, line: int) -> None - removed:
method FinallyNonlocalControl.gen_cleanup(builder: IRBuilder, line: int) -> None - removed:
method FuncInfo.namespaced_name() -> str - removed:
method GeneratorNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - removed:
method IRBuilder.add_args_to_env(local: bool=…, base: Optional[Union[FuncInfo, ImplicitClass]]=…, reassign: bool=…) -> None - removed:
method IRBuilder.add_await_to_generator_class(fn_info: FuncInfo) -> None - removed:
method IRBuilder.add_call_to_callable_class(blocks: List[BasicBlock], sig: FuncSignature, env: Environment, fn_info: FuncInfo) -> FuncIR - removed:
method IRBuilder.add_close_to_generator_class(fn_info: FuncInfo) -> None - removed:
method IRBuilder.add_get_to_callable_class(fn_info: FuncInfo) -> None - removed:
method IRBuilder.add_helper_to_generator_class(blocks: List[BasicBlock], sig: FuncSignature, env: Environment, fn_info: FuncInfo) -> FuncDecl - removed:
method IRBuilder.add_iter_to_generator_class(fn_info: FuncInfo) -> None - removed:
method IRBuilder.add_next_to_generator_class(fn_info: FuncInfo, fn_decl: FuncDecl, sig: FuncSignature) -> None - removed:
method IRBuilder.add_non_ext_class_attr(non_ext: NonExtClassInfo, lvalue: NameExpr, stmt: AssignmentStmt, cdef: ClassDef, attr_to_cache: List[Lvalue]) -> None - removed:
method IRBuilder.add_raise_exception_blocks_to_generator_class(line: int) -> None - removed:
method IRBuilder.add_self_to_env(cls: ClassIR) -> AssignmentTargetRegister - removed:
method IRBuilder.add_send_to_generator_class(fn_info: FuncInfo, fn_decl: FuncDecl, sig: FuncSignature) -> None - removed:
method IRBuilder.add_throw_to_generator_class(fn_info: FuncInfo, fn_decl: FuncDecl, sig: FuncSignature) -> None - removed:
method IRBuilder.allocate_class(cdef: ClassDef) -> Value - removed:
method IRBuilder.any_all_helper(gen: GeneratorExpr, initial_value_op: OpDescription, modify: Callable[[Value], Value], new_value_op: OpDescription) -> Value - removed:
method IRBuilder.bail(msg: str, line: int) -> NoReturn - removed:
method IRBuilder.box(src: Value) -> Value - removed:
method IRBuilder.box_expr(expr: Expression) -> Value - removed:
method IRBuilder.cache_class_attrs(attrs_to_cache: List[Lvalue], cdef: ClassDef) -> None - removed:
method IRBuilder.calculate_arg_defaults(fn_info: FuncInfo, env: Environment, func_reg: Optional[Value]) -> None - removed:
method IRBuilder.call(decl: FuncDecl, args: Sequence[Value], arg_kinds: List[int], arg_names: Sequence[Optional[str]], line: int) -> Value - removed:
method IRBuilder.create_mypyc_attrs_tuple(ir: ClassIR, line: int) -> Value - removed:
method IRBuilder.create_ne_from_eq(cdef: ClassDef) -> None - removed:
method IRBuilder.create_switch_for_generator_class() -> None - removed:
method IRBuilder.dataclass_finalize(cdef: ClassDef, non_ext: NonExtClassInfo, type_obj: Value) -> None - removed:
method IRBuilder.dataclass_non_ext_info(cdef: ClassDef) -> Optional[NonExtClassInfo] - removed:
method IRBuilder.decompose_union_helper(obj: Value, rtype: RUnion, result_type: RType, process_item: Callable[[Value], Value], line: int) -> Value - removed:
method IRBuilder.emit_yield(val: Value, line: int) -> Value - removed:
method IRBuilder.finalize_env_class() -> None - removed:
method IRBuilder.find_non_ext_metaclass(cdef: ClassDef, bases: Value) -> Value - removed:
method IRBuilder.finish_non_ext_dict(non_ext: NonExtClassInfo, line: int) -> None - removed:
method IRBuilder.gen_arg_defaults() -> None - removed:
method IRBuilder.gen_func_ir(blocks: List[BasicBlock], sig: FuncSignature, env: Environment, fn_info: FuncInfo, cdef: Optional[ClassDef]) -> Tuple[FuncIR, Optional[Value]] - removed:
method IRBuilder.gen_func_item(fitem: FuncItem, name: str, sig: FuncSignature, cdef: Optional[ClassDef]=…) -> Tuple[FuncIR, Optional[Value]] - removed:
method IRBuilder.gen_func_ns() -> str - removed:
method IRBuilder.gen_generator_func() -> None - removed:
method IRBuilder.gen_glue(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, fdef: FuncItem, *, do_py_ops: bool=…) -> FuncIR - removed:
method IRBuilder.gen_glue_method(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pycall: bool) -> FuncIR - removed:
method IRBuilder.gen_glue_ne_method(cls: ClassIR, line: int) -> FuncIR - removed:
method IRBuilder.gen_glue_property(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pygetattr: bool) -> FuncIR - removed:
method IRBuilder.generate_attr_defaults(cdef: ClassDef) -> None - removed:
method IRBuilder.get_attr(obj: Value, attr: str, result_type: RType, line: int) -> Value - removed:
method IRBuilder.get_func_target(fdef: FuncDef) -> AssignmentTarget - removed:
method IRBuilder.get_native_type(cls: ClassIR) -> Value - removed:
method IRBuilder.get_sys_exc_info() -> List[Value] - removed:
method IRBuilder.goto_new_block() -> BasicBlock - removed:
method IRBuilder.handle_ext_method(cdef: ClassDef, fdef: FuncDef) -> None - removed:
method IRBuilder.handle_non_ext_method(non_ext: NonExtClassInfo, cdef: ClassDef, fdef: FuncDef) -> None - removed:
method IRBuilder.handle_yield_from_and_await(o: Union[YieldFromExpr, AwaitExpr]) -> Value - removed:
method IRBuilder.instantiate_callable_class(fn_info: FuncInfo) -> Value - removed:
method IRBuilder.instantiate_env_class() -> Value - removed:
method IRBuilder.instantiate_generator_class() -> Value - removed:
method IRBuilder.is_constant(e: Expression) -> bool - removed:
method IRBuilder.is_decorated(fdef: FuncDef) -> bool - removed:
method IRBuilder.is_free_variable(symbol: SymbolNode) -> bool - removed:
method IRBuilder.isinstance_helper(obj: Value, class_irs: List[ClassIR], line: int) -> Value - removed:
method IRBuilder.isinstance_native(obj: Value, class_ir: ClassIR, line: int) -> Value - removed:
method IRBuilder.literal_static_name(value: Union[int, float, complex, str, bytes]) -> str - removed:
method IRBuilder.load_decorated_class(cdef: ClassDef, type_obj: Value) -> Value - removed:
method IRBuilder.load_decorated_func(fdef: FuncDef, orig_func_reg: Value) -> Value - removed:
method IRBuilder.load_env_registers() -> None - removed:
method IRBuilder.load_non_ext_class(ir: ClassIR, non_ext: NonExtClassInfo, line: int) -> Value - removed:
method IRBuilder.load_outer_env(base: Value, outer_env: Environment) -> Value - removed:
method IRBuilder.load_outer_envs(base: ImplicitClass) -> None - removed:
method IRBuilder.load_static_bytes(value: bytes) -> Value - removed:
method IRBuilder.load_static_complex(value: complex) -> Value - removed:
method IRBuilder.load_static_float(value: float) -> Value - removed:
method IRBuilder.load_static_int(value: int) -> Value - removed:
method IRBuilder.make_dict(key_value_pairs: Sequence[DictEntry], line: int) -> Value - removed:
method IRBuilder.matching_primitive_op(candidates: List[OpDescription], args: List[Value], line: int, result_type: Optional[RType]=…) -> Optional[Value] - removed:
method IRBuilder.native_args_to_positional(args: Sequence[Value], arg_kinds: List[int], arg_names: Sequence[Optional[str]], sig: FuncSignature, line: int) -> List[Value] - removed:
method IRBuilder.new_block() -> BasicBlock - removed:
method IRBuilder.none() -> Value - removed:
method IRBuilder.op_arg_type(desc: OpDescription, n: int) -> RType - removed:
method IRBuilder.populate_non_ext_bases(cdef: ClassDef) -> Value - removed:
method IRBuilder.populate_switch_for_generator_class() -> None - removed:
method IRBuilder.py_method_call(obj: Value, method_name: str, arg_values: List[Value], line: int, arg_kinds: Optional[List[int]], arg_names: Optional[Sequence[Optional[str]]]) -> Value - removed:
method IRBuilder.setup_callable_class() -> None - removed:
method IRBuilder.setup_env_class() -> ClassIR - removed:
method IRBuilder.setup_env_for_generator_class() -> None - removed:
method IRBuilder.setup_func_for_recursive_call(fdef: FuncDef, base: ImplicitClass) -> None - removed:
method IRBuilder.setup_generator_class() -> ClassIR - removed:
method IRBuilder.setup_non_ext_dict(cdef: ClassDef, metaclass: Value, bases: Value) -> Value - removed:
method IRBuilder.shortcircuit_helper(op: str, expr_type: RType, left: Callable[[], Value], right: Callable[[], Value], line: int) -> Value - removed:
method IRBuilder.translate_all_call(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_any_call(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_call(expr: CallExpr, callee: Expression) -> Value - removed:
method IRBuilder.translate_cast_expr(expr: CastExpr) -> Value - removed:
method IRBuilder.translate_dataclasses_field_call(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_eq_cmp(lreg: Value, rreg: Value, expr_op: str, line: int) -> Optional[Value] - removed:
method IRBuilder.translate_globals(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_isinstance(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_len(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_method_call(expr: CallExpr, callee: MemberExpr) -> Value - removed:
method IRBuilder.translate_next_call(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_refexpr_call(expr: CallExpr, callee: RefExpr) -> Value - removed:
method IRBuilder.translate_safe_generator_call(expr: CallExpr, callee: RefExpr) -> Optional[Value] - removed:
method IRBuilder.translate_special_method_call(base_reg: Value, name: str, args: List[Value], result_type: Optional[RType], line: int) -> Optional[Value] - removed:
method IRBuilder.translate_super_method_call(expr: CallExpr, callee: SuperExpr) -> Value - removed:
method IRBuilder.try_finally_body(finally_block: BasicBlock, finally_body: GenFunc, ret_reg: Optional[Value], old_exc: Value) -> Tuple[BasicBlock, FinallyNonlocalControl] - removed:
method IRBuilder.try_finally_entry_blocks(err_handler: BasicBlock, return_entry: BasicBlock, main_entry: BasicBlock, finally_block: BasicBlock, ret_reg: Optional[Register]) -> Value - removed:
method IRBuilder.try_finally_resolve_control(cleanup_block: BasicBlock, finally_control: FinallyNonlocalControl, old_exc: Value, ret_reg: Optional[Value]) -> BasicBlock - removed:
method IRBuilder.try_finally_try(err_handler: BasicBlock, return_entry: BasicBlock, main_entry: BasicBlock, try_body: GenFunc) -> Optional[Register] - removed:
method IRBuilder.unbox_or_cast(src: Value, target_type: RType, line: int) -> Value - removed:
method IRBuilder.union_get_attr(obj: Value, rtype: RUnion, attr: str, result_type: RType, line: int) -> Value - removed:
method IRBuilder.union_method_call(base: Value, obj_type: RUnion, name: str, arg_values: List[Value], return_rtype: Optional[RType], line: int, arg_kinds: Optional[List[int]], arg_names: Optional[List[Optional[str]]]) -> Value - removed:
method IRBuilder.visit__promote_expr(o: PromoteExpr) -> Value - removed:
method IRBuilder.visit_assert_stmt(a: AssertStmt) -> None - removed:
method IRBuilder.visit_assignment_expr(o: AssignmentExpr) -> Value - removed:
method IRBuilder.visit_assignment_stmt(stmt: AssignmentStmt) -> None - removed:
method IRBuilder.visit_await_expr(o: AwaitExpr) -> Value - removed:
method IRBuilder.visit_backquote_expr(o: BackquoteExpr) -> Value - removed:
method IRBuilder.visit_basic_comparison(op: str, left: Value, right: Value, line: int) -> Value - removed:
method IRBuilder.visit_block(block: Block) -> None - removed:
method IRBuilder.visit_break_stmt(node: BreakStmt) -> None - removed:
method IRBuilder.visit_bytes_expr(expr: BytesExpr) -> Value - removed:
method IRBuilder.visit_call_expr(expr: CallExpr) -> Value - removed:
method IRBuilder.visit_cast_expr(o: CastExpr) -> Value - removed:
method IRBuilder.visit_class_def(cdef: ClassDef) -> None - removed:
method IRBuilder.visit_comparison_expr(e: ComparisonExpr) -> Value - removed:
method IRBuilder.visit_complex_expr(expr: ComplexExpr) -> Value - removed:
method IRBuilder.visit_conditional_expr(expr: ConditionalExpr) -> Value - removed:
method IRBuilder.visit_continue_stmt(node: ContinueStmt) -> None - removed:
method IRBuilder.visit_decorator(dec: Decorator) -> None - removed:
method IRBuilder.visit_del_item(target: AssignmentTarget, line: int) -> None - removed:
method IRBuilder.visit_del_stmt(o: DelStmt) -> None - removed:
method IRBuilder.visit_dict_expr(expr: DictExpr) -> Value - removed:
method IRBuilder.visit_dictionary_comprehension(o: DictionaryComprehension) -> Value - removed:
method IRBuilder.visit_ellipsis(o: EllipsisExpr) -> Value - removed:
method IRBuilder.visit_enum_call_expr(o: EnumCallExpr) -> Value - removed:
method IRBuilder.visit_exec_stmt(o: ExecStmt) -> None - removed:
method IRBuilder.visit_expression_stmt(stmt: ExpressionStmt) -> None - removed:
method IRBuilder.visit_float_expr(expr: FloatExpr) -> Value - removed:
method IRBuilder.visit_for_stmt(s: ForStmt) -> None - removed:
method IRBuilder.visit_func_def(fdef: FuncDef) -> None - removed:
method IRBuilder.visit_generator_expr(o: GeneratorExpr) -> Value - removed:
method IRBuilder.visit_global_decl(o: GlobalDecl) -> None - removed:
method IRBuilder.visit_if_stmt(stmt: IfStmt) -> None - removed:
method IRBuilder.visit_index_expr(expr: IndexExpr) -> Value - removed:
method IRBuilder.visit_int_expr(expr: IntExpr) -> Value - removed:
method IRBuilder.visit_lambda_expr(expr: LambdaExpr) -> Value - removed:
method IRBuilder.visit_list_comprehension(o: ListComprehension) -> Value - removed:
method IRBuilder.visit_list_expr(expr: ListExpr) -> Value - removed:
method IRBuilder.visit_member_expr(expr: MemberExpr) -> Value - removed:
method IRBuilder.visit_method(cdef: ClassDef, non_ext: Optional[NonExtClassInfo], fdef: FuncDef) -> None - removed:
method IRBuilder.visit_name_expr(expr: NameExpr) -> Value - removed:
method IRBuilder.visit_namedtuple_expr(o: NamedTupleExpr) -> Value - removed:
method IRBuilder.visit_newtype_expr(o: NewTypeExpr) -> Value - removed:
method IRBuilder.visit_nonlocal_decl(o: NonlocalDecl) -> None - removed:
method IRBuilder.visit_op_expr(expr: OpExpr) -> Value - removed:
method IRBuilder.visit_operator_assignment_stmt(stmt: OperatorAssignmentStmt) -> None - removed:
method IRBuilder.visit_overloaded_func_def(o: OverloadedFuncDef) -> None - removed:
method IRBuilder.visit_pass_stmt(o: PassStmt) -> None - removed:
method IRBuilder.visit_print_stmt(o: PrintStmt) -> None - removed:
method IRBuilder.visit_raise_stmt(s: RaiseStmt) -> None - removed:
method IRBuilder.visit_return_stmt(stmt: ReturnStmt) -> None - removed:
method IRBuilder.visit_reveal_expr(o: RevealExpr) -> Value - removed:
method IRBuilder.visit_set_comprehension(o: SetComprehension) -> Value - removed:
method IRBuilder.visit_set_expr(expr: SetExpr) -> Value - removed:
method IRBuilder.visit_slice_expr(expr: SliceExpr) -> Value - removed:
method IRBuilder.visit_star_expr(o: StarExpr) -> Value - removed:
method IRBuilder.visit_str_expr(expr: StrExpr) -> Value - removed:
method IRBuilder.visit_super_expr(o: SuperExpr) -> Value - removed:
method IRBuilder.visit_temp_node(o: TempNode) -> Value - removed:
method IRBuilder.visit_try_except(body: GenFunc, handlers: Sequence[Tuple[Optional[Expression], Optional[Expression], GenFunc]], else_body: Optional[GenFunc], line: int) -> None - removed:
method IRBuilder.visit_try_except_stmt(t: TryStmt) -> None - removed:
method IRBuilder.visit_try_finally_stmt(try_body: GenFunc, finally_body: GenFunc) -> None - removed:
method IRBuilder.visit_try_stmt(t: TryStmt) -> None - removed:
method IRBuilder.visit_tuple_expr(expr: TupleExpr) -> Value - removed:
method IRBuilder.visit_type_alias_expr(o: TypeAliasExpr) -> Value - removed:
method IRBuilder.visit_type_application(o: TypeApplication) -> Value - removed:
method IRBuilder.visit_type_var_expr(o: TypeVarExpr) -> Value - removed:
method IRBuilder.visit_typeddict_expr(o: TypedDictExpr) -> Value - removed:
method IRBuilder.visit_unary_expr(expr: UnaryExpr) -> Value - removed:
method IRBuilder.visit_unicode_expr(o: UnicodeExpr) -> Value - removed:
method IRBuilder.visit_var(o: Var) -> None - removed:
method IRBuilder.visit_while_stmt(s: WhileStmt) -> None - removed:
method IRBuilder.visit_with(expr: Expression, target: Optional[Lvalue], body: GenFunc, line: int) -> None - removed:
method IRBuilder.visit_with_stmt(o: WithStmt) -> None - removed:
method IRBuilder.visit_yield_expr(expr: YieldExpr) -> Value - removed:
method IRBuilder.visit_yield_from_expr(o: YieldFromExpr) -> Value - removed:
method LoopNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - removed:
method LoopNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - removed:
method LoopNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - removed:
method Mapper.fdef_to_sig(fdef: FuncDef) -> FuncSignature - removed:
method Mapper.get_arg_rtype(typ: Type, kind: int) -> RType - removed:
method Mapper.literal_static_name(module: str, value: Union[int, float, complex, str, bytes]) -> str - removed:
method Mapper.type_to_rtype(typ: Optional[Type]) -> RType - removed:
method NonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - removed:
method NonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - removed:
method NonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - removed:
method TryFinallyNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - removed:
method TryFinallyNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - removed:
method TryFinallyNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - removed:
property FuncInfo.callable_class -> ImplicitClass - removed:
property FuncInfo.curr_env_reg -> Value - removed:
property FuncInfo.env_class -> ClassIR - removed:
property FuncInfo.generator_class -> GeneratorClass - removed:
property FuncInfo.is_generator -> bool - removed:
property GeneratorClass.next_label_reg -> Value - removed:
property GeneratorClass.next_label_target -> AssignmentTarget - removed:
property ImplicitClass.curr_env_reg -> Value - removed:
property ImplicitClass.prev_env_reg -> Value - removed:
property ImplicitClass.self_reg -> Value - removed:
variable DictEntry - removed:
variable F - removed:
variable Specializer - removed:
variable specializers - removed:
variable strict_optional_dec - changed:
class IRBuilder(ExpressionVisitor[Value], StatementVisitor[None]) → class IRBuilder - changed:
constructor IRBuilder(current_module: str, types: Dict[Expression, Type], graph: Graph, errors: Errors, mapper: Mapper, pbv: PreBuildVisitor, options: CompilerOptions) -> None → constructor IRBuilder(current_module: str, types: Dict[Expression, Type], graph: Graph, errors: Errors, mapper: Mapper, pbv: PreBuildVisitor, visitor: IRVisitor, options: CompilerOptions) -> None - changed:
method IRBuilder.enter(fn_info: FuncInfo) -> None → method IRBuilder.enter(fn_info: Union[FuncInfo, str]=…) -> None - changed:
method IRBuilder.gen_method_call(base: Value, name: str, arg_values: List[Value], return_rtype: Optional[RType], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[List[Optional[str]]]=…) -> Value → method IRBuilder.gen_method_call(base: Value, name: str, arg_values: List[Value], result_type: Optional[RType], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[List[Optional[str]]]=…) -> Value - added:
class IRVisitor(ExpressionVisitor[Value], StatementVisitor[None]) - added:
property IRBuilder.environment -> Environment
- added:
class FuncInfo - added:
class GeneratorClass(ImplicitClass) - added:
class ImplicitClass - added:
constructor FuncInfo(fitem: FuncItem=…, name: str=…, class_name: Optional[str]=…, namespace: str=…, is_nested: bool=…, contains_nested: bool=…, is_decorated: bool=…, in_non_ext: bool=…) -> None - added:
constructor GeneratorClass(ir: ClassIR) -> None - added:
constructor ImplicitClass(ir: ClassIR) -> None - added:
method FuncInfo.namespaced_name() -> str - added:
property FuncInfo.callable_class -> ImplicitClass - added:
property FuncInfo.curr_env_reg -> Value - added:
property FuncInfo.env_class -> ClassIR - added:
property FuncInfo.generator_class -> GeneratorClass - added:
property FuncInfo.is_generator -> bool - added:
property GeneratorClass.next_label_reg -> Value - added:
property GeneratorClass.next_label_target -> AssignmentTarget - added:
property ImplicitClass.curr_env_reg -> Value - added:
property ImplicitClass.prev_env_reg -> Value - added:
property ImplicitClass.self_reg -> Value
- added:
function build_ir(modules: List[MypyFile], graph: Graph, types: Dict[Expression, Type], mapper: Mapper, options: CompilerOptions, errors: Errors) -> ModuleIRs - added:
variable F - added:
variable strict_optional_dec
- added:
class Mapper - added:
constructor Mapper(group_map: Dict[str, Optional[str]]) -> None - added:
method Mapper.fdef_to_sig(fdef: FuncDef) -> FuncSignature - added:
method Mapper.get_arg_rtype(typ: Type, kind: int) -> RType - added:
method Mapper.literal_static_name(module: str, value: Union[int, float, complex, str, bytes]) -> str - added:
method Mapper.type_to_rtype(typ: Optional[Type]) -> RType
- added:
function build_type_map(mapper: Mapper, modules: List[MypyFile], graph: Graph, types: Dict[Expression, Type], options: CompilerOptions, errors: Errors) -> None - added:
function can_subclass_builtin(builtin_base: str) -> bool - added:
function get_module_func_defs(module: MypyFile) -> Iterable[FuncDef] - added:
function is_valid_multipart_property_def(prop: OverloadedFuncDef) -> bool - added:
function load_type_map(mapper: Mapper, modules: List[MypyFile], deser_ctx: DeserMaps) -> None - added:
function prepare_class_def(path: str, module_name: str, cdef: ClassDef, errors: Errors, mapper: Mapper) -> None - added:
function prepare_func_def(module_name: str, class_name: Optional[str], fdef: FuncDef, mapper: Mapper) -> FuncDecl - added:
function prepare_method_def(ir: ClassIR, module_name: str, cdef: ClassDef, mapper: Mapper, node: Union[FuncDef, Decorator]) -> None - added:
function prepare_non_ext_class_def(path: str, module_name: str, cdef: ClassDef, errors: Errors, mapper: Mapper) -> None
- added:
function add_self_to_env(environment: Environment, cls: ClassIR) -> AssignmentTargetRegister - added:
function concrete_arg_kind(kind: int) -> int - added:
function get_func_def(op: Union[FuncDef, Decorator, OverloadedFuncDef]) -> FuncDef - added:
function get_mypyc_attr_call(d: Expression) -> Optional[CallExpr] - added:
function get_mypyc_attr_literal(e: Expression) -> Any - added:
function get_mypyc_attrs(stmt: Union[ClassDef, Decorator]) -> Dict[str, Any] - added:
function is_constant(e: Expression) -> bool - added:
function is_dataclass(cdef: ClassDef) -> bool - added:
function is_dataclass_decorator(d: Expression) -> bool - added:
function is_extension_class(cdef: ClassDef) -> bool - added:
function is_trait(cdef: ClassDef) -> bool - added:
function is_trait_decorator(d: Expression) -> bool
- added:
class IRBuilderVisitor(IRVisitor) - added:
field IRBuilderVisitor.builder - added:
method IRBuilderVisitor.bail(msg: str, line: int) -> NoReturn - added:
method IRBuilderVisitor.visit__promote_expr(o: PromoteExpr) -> Value - added:
method IRBuilderVisitor.visit_assert_stmt(stmt: AssertStmt) -> None - added:
method IRBuilderVisitor.visit_assignment_expr(o: AssignmentExpr) -> Value - added:
method IRBuilderVisitor.visit_assignment_stmt(stmt: AssignmentStmt) -> None - added:
method IRBuilderVisitor.visit_await_expr(o: AwaitExpr) -> Value - added:
method IRBuilderVisitor.visit_backquote_expr(o: BackquoteExpr) -> Value - added:
method IRBuilderVisitor.visit_block(block: Block) -> None - added:
method IRBuilderVisitor.visit_break_stmt(stmt: BreakStmt) -> None - added:
method IRBuilderVisitor.visit_bytes_expr(expr: BytesExpr) -> Value - added:
method IRBuilderVisitor.visit_call_expr(expr: CallExpr) -> Value - added:
method IRBuilderVisitor.visit_cast_expr(o: CastExpr) -> Value - added:
method IRBuilderVisitor.visit_class_def(cdef: ClassDef) -> None - added:
method IRBuilderVisitor.visit_comparison_expr(expr: ComparisonExpr) -> Value - added:
method IRBuilderVisitor.visit_complex_expr(expr: ComplexExpr) -> Value - added:
method IRBuilderVisitor.visit_conditional_expr(expr: ConditionalExpr) -> Value - added:
method IRBuilderVisitor.visit_continue_stmt(stmt: ContinueStmt) -> None - added:
method IRBuilderVisitor.visit_decorator(dec: Decorator) -> None - added:
method IRBuilderVisitor.visit_del_stmt(stmt: DelStmt) -> None - added:
method IRBuilderVisitor.visit_dict_expr(expr: DictExpr) -> Value - added:
method IRBuilderVisitor.visit_dictionary_comprehension(expr: DictionaryComprehension) -> Value - added:
method IRBuilderVisitor.visit_ellipsis(expr: EllipsisExpr) -> Value - added:
method IRBuilderVisitor.visit_enum_call_expr(o: EnumCallExpr) -> Value - added:
method IRBuilderVisitor.visit_exec_stmt(o: ExecStmt) -> None - added:
method IRBuilderVisitor.visit_expression_stmt(stmt: ExpressionStmt) -> None - added:
method IRBuilderVisitor.visit_float_expr(expr: FloatExpr) -> Value - added:
method IRBuilderVisitor.visit_for_stmt(stmt: ForStmt) -> None - added:
method IRBuilderVisitor.visit_func_def(fdef: FuncDef) -> None - added:
method IRBuilderVisitor.visit_generator_expr(expr: GeneratorExpr) -> Value - added:
method IRBuilderVisitor.visit_global_decl(stmt: GlobalDecl) -> None - added:
method IRBuilderVisitor.visit_if_stmt(stmt: IfStmt) -> None - added:
method IRBuilderVisitor.visit_import(node: Import) -> None - added:
method IRBuilderVisitor.visit_import_all(node: ImportAll) -> None - added:
method IRBuilderVisitor.visit_import_from(node: ImportFrom) -> None - added:
method IRBuilderVisitor.visit_index_expr(expr: IndexExpr) -> Value - added:
method IRBuilderVisitor.visit_int_expr(expr: IntExpr) -> Value - added:
method IRBuilderVisitor.visit_lambda_expr(expr: LambdaExpr) -> Value - added:
method IRBuilderVisitor.visit_list_comprehension(expr: ListComprehension) -> Value - added:
method IRBuilderVisitor.visit_list_expr(expr: ListExpr) -> Value - added:
method IRBuilderVisitor.visit_member_expr(expr: MemberExpr) -> Value - added:
method IRBuilderVisitor.visit_mypy_file(mypyfile: MypyFile) -> None - added:
method IRBuilderVisitor.visit_name_expr(expr: NameExpr) -> Value - added:
method IRBuilderVisitor.visit_namedtuple_expr(o: NamedTupleExpr) -> Value - added:
method IRBuilderVisitor.visit_newtype_expr(o: NewTypeExpr) -> Value - added:
method IRBuilderVisitor.visit_nonlocal_decl(stmt: NonlocalDecl) -> None - added:
method IRBuilderVisitor.visit_op_expr(expr: OpExpr) -> Value - added:
method IRBuilderVisitor.visit_operator_assignment_stmt(stmt: OperatorAssignmentStmt) -> None - added:
method IRBuilderVisitor.visit_overloaded_func_def(o: OverloadedFuncDef) -> None - added:
method IRBuilderVisitor.visit_pass_stmt(stmt: PassStmt) -> None - added:
method IRBuilderVisitor.visit_print_stmt(o: PrintStmt) -> None - added:
method IRBuilderVisitor.visit_raise_stmt(stmt: RaiseStmt) -> None - added:
method IRBuilderVisitor.visit_return_stmt(stmt: ReturnStmt) -> None - added:
method IRBuilderVisitor.visit_reveal_expr(o: RevealExpr) -> Value - added:
method IRBuilderVisitor.visit_set_comprehension(expr: SetComprehension) -> Value - added:
method IRBuilderVisitor.visit_set_expr(expr: SetExpr) -> Value - added:
method IRBuilderVisitor.visit_slice_expr(expr: SliceExpr) -> Value - added:
method IRBuilderVisitor.visit_star_expr(o: StarExpr) -> Value - added:
method IRBuilderVisitor.visit_str_expr(expr: StrExpr) -> Value - added:
method IRBuilderVisitor.visit_super_expr(expr: SuperExpr) -> Value - added:
method IRBuilderVisitor.visit_temp_node(o: TempNode) -> Value - added:
method IRBuilderVisitor.visit_try_stmt(stmt: TryStmt) -> None - added:
method IRBuilderVisitor.visit_tuple_expr(expr: TupleExpr) -> Value - added:
method IRBuilderVisitor.visit_type_alias_expr(o: TypeAliasExpr) -> Value - added:
method IRBuilderVisitor.visit_type_application(o: TypeApplication) -> Value - added:
method IRBuilderVisitor.visit_type_var_expr(o: TypeVarExpr) -> Value - added:
method IRBuilderVisitor.visit_typeddict_expr(o: TypedDictExpr) -> Value - added:
method IRBuilderVisitor.visit_unary_expr(expr: UnaryExpr) -> Value - added:
method IRBuilderVisitor.visit_unicode_expr(o: UnicodeExpr) -> Value - added:
method IRBuilderVisitor.visit_var(o: Var) -> None - added:
method IRBuilderVisitor.visit_while_stmt(stmt: WhileStmt) -> None - added:
method IRBuilderVisitor.visit_with_stmt(stmt: WithStmt) -> None - added:
method IRBuilderVisitor.visit_yield_expr(expr: YieldExpr) -> Value - added:
method IRBuilderVisitor.visit_yield_from_expr(o: YieldFromExpr) -> Value
- added:
function compute_vtable(cls: ClassIR) -> None - added:
function specialize_parent_vtable(cls: ClassIR, parent: ClassIR) -> VTableEntries
- added:
function get_sys_exc_info(builder: IRBuilder) -> List[Value] - added:
function transform_assert_stmt(builder: IRBuilder, a: AssertStmt) -> None - added:
function transform_assignment_stmt(builder: IRBuilder, stmt: AssignmentStmt) -> None - added:
function transform_block(builder: IRBuilder, block: Block) -> None - added:
function transform_break_stmt(builder: IRBuilder, node: BreakStmt) -> None - added:
function transform_continue_stmt(builder: IRBuilder, node: ContinueStmt) -> None - added:
function transform_del_item(builder: IRBuilder, target: AssignmentTarget, line: int) -> None - added:
function transform_del_stmt(builder: IRBuilder, o: DelStmt) -> None - added:
function transform_expression_stmt(builder: IRBuilder, stmt: ExpressionStmt) -> None - added:
function transform_for_stmt(builder: IRBuilder, s: ForStmt) -> None - added:
function transform_if_stmt(builder: IRBuilder, stmt: IfStmt) -> None - added:
function transform_operator_assignment_stmt(builder: IRBuilder, stmt: OperatorAssignmentStmt) -> None - added:
function transform_raise_stmt(builder: IRBuilder, s: RaiseStmt) -> None - added:
function transform_return_stmt(builder: IRBuilder, stmt: ReturnStmt) -> None - added:
function transform_try_except(builder: IRBuilder, body: GenFunc, handlers: Sequence[Tuple[Optional[Expression], Optional[Expression], GenFunc]], else_body: Optional[GenFunc], line: int) -> None - added:
function transform_try_except_stmt(builder: IRBuilder, t: TryStmt) -> None - added:
function transform_try_finally_stmt(builder: IRBuilder, try_body: GenFunc, finally_body: GenFunc) -> None - added:
function transform_try_stmt(builder: IRBuilder, t: TryStmt) -> None - added:
function transform_while_stmt(builder: IRBuilder, s: WhileStmt) -> None - added:
function transform_with(builder: IRBuilder, expr: Expression, target: Optional[Lvalue], body: GenFunc, line: int) -> None - added:
function transform_with_stmt(builder: IRBuilder, o: WithStmt) -> None - added:
function try_finally_body(builder: IRBuilder, finally_block: BasicBlock, finally_body: GenFunc, ret_reg: Optional[Value], old_exc: Value) -> Tuple[BasicBlock, FinallyNonlocalControl] - added:
function try_finally_entry_blocks(builder: IRBuilder, err_handler: BasicBlock, return_entry: BasicBlock, main_entry: BasicBlock, finally_block: BasicBlock, ret_reg: Optional[Register]) -> Value - added:
function try_finally_resolve_control(builder: IRBuilder, cleanup_block: BasicBlock, finally_control: FinallyNonlocalControl, old_exc: Value, ret_reg: Optional[Value]) -> BasicBlock - added:
function try_finally_try(builder: IRBuilder, err_handler: BasicBlock, return_entry: BasicBlock, main_entry: BasicBlock, try_body: GenFunc) -> Optional[Register] - added:
variable GenFunc
- added:
class LowLevelIRBuilder - added:
constructor LowLevelIRBuilder(current_module: str, mapper: Mapper) -> None - added:
method LowLevelIRBuilder.activate_block(block: BasicBlock) -> None - added:
method LowLevelIRBuilder.add(op: Op) -> Value - added:
method LowLevelIRBuilder.add_bool_branch(value: Value, true: BasicBlock, false: BasicBlock) -> None - added:
method LowLevelIRBuilder.alloc_temp(type: RType) -> Register - added:
method LowLevelIRBuilder.binary_op(lreg: Value, rreg: Value, expr_op: str, line: int) -> Value - added:
method LowLevelIRBuilder.box(src: Value) -> Value - added:
method LowLevelIRBuilder.call(decl: FuncDecl, args: Sequence[Value], arg_kinds: List[int], arg_names: Sequence[Optional[str]], line: int) -> Value - added:
method LowLevelIRBuilder.coerce(src: Value, target_type: RType, line: int, force: bool=…) -> Value - added:
method LowLevelIRBuilder.decompose_union_helper(obj: Value, rtype: RUnion, result_type: RType, process_item: Callable[[Value], Value], line: int) -> Value - added:
method LowLevelIRBuilder.gen_method_call(base: Value, name: str, arg_values: List[Value], result_type: Optional[RType], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[List[Optional[str]]]=…) -> Value - added:
method LowLevelIRBuilder.get_attr(obj: Value, attr: str, result_type: RType, line: int) -> Value - added:
method LowLevelIRBuilder.get_native_type(cls: ClassIR) -> Value - added:
method LowLevelIRBuilder.goto(target: BasicBlock) -> None - added:
method LowLevelIRBuilder.goto_and_activate(block: BasicBlock) -> None - added:
method LowLevelIRBuilder.isinstance_helper(obj: Value, class_irs: List[ClassIR], line: int) -> Value - added:
method LowLevelIRBuilder.isinstance_native(obj: Value, class_ir: ClassIR, line: int) -> Value - added:
method LowLevelIRBuilder.literal_static_name(value: Union[int, float, complex, str, bytes]) -> str - added:
method LowLevelIRBuilder.load_module(name: str) -> Value - added:
method LowLevelIRBuilder.load_native_type_object(fullname: str) -> Value - added:
method LowLevelIRBuilder.load_static_bytes(value: bytes) -> Value - added:
method LowLevelIRBuilder.load_static_complex(value: complex) -> Value - added:
method LowLevelIRBuilder.load_static_float(value: float) -> Value - added:
method LowLevelIRBuilder.load_static_int(value: int) -> Value - added:
method LowLevelIRBuilder.load_static_unicode(value: str) -> Value - added:
method LowLevelIRBuilder.make_dict(key_value_pairs: Sequence[DictEntry], line: int) -> Value - added:
method LowLevelIRBuilder.matching_primitive_op(candidates: List[OpDescription], args: List[Value], line: int, result_type: Optional[RType]=…) -> Optional[Value] - added:
method LowLevelIRBuilder.native_args_to_positional(args: Sequence[Value], arg_kinds: List[int], arg_names: Sequence[Optional[str]], sig: FuncSignature, line: int) -> List[Value] - added:
method LowLevelIRBuilder.none() -> Value - added:
method LowLevelIRBuilder.none_object() -> Value - added:
method LowLevelIRBuilder.op_arg_type(desc: OpDescription, n: int) -> RType - added:
method LowLevelIRBuilder.pop_error_handler() -> Optional[BasicBlock] - added:
method LowLevelIRBuilder.primitive_op(desc: OpDescription, args: List[Value], line: int) -> Value - added:
method LowLevelIRBuilder.push_error_handler(handler: Optional[BasicBlock]) -> None - added:
method LowLevelIRBuilder.py_call(function: Value, arg_values: List[Value], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[Sequence[Optional[str]]]=…) -> Value - added:
method LowLevelIRBuilder.py_get_attr(obj: Value, attr: str, line: int) -> Value - added:
method LowLevelIRBuilder.py_method_call(obj: Value, method_name: str, arg_values: List[Value], line: int, arg_kinds: Optional[List[int]], arg_names: Optional[Sequence[Optional[str]]]) -> Value - added:
method LowLevelIRBuilder.shortcircuit_helper(op: str, expr_type: RType, left: Callable[[], Value], right: Callable[[], Value], line: int) -> Value - added:
method LowLevelIRBuilder.translate_eq_cmp(lreg: Value, rreg: Value, expr_op: str, line: int) -> Optional[Value] - added:
method LowLevelIRBuilder.translate_special_method_call(base_reg: Value, name: str, args: List[Value], result_type: Optional[RType], line: int) -> Optional[Value] - added:
method LowLevelIRBuilder.unary_op(lreg: Value, expr_op: str, line: int) -> Value - added:
method LowLevelIRBuilder.unbox_or_cast(src: Value, target_type: RType, line: int) -> Value - added:
method LowLevelIRBuilder.union_get_attr(obj: Value, rtype: RUnion, attr: str, result_type: RType, line: int) -> Value - added:
method LowLevelIRBuilder.union_method_call(base: Value, obj_type: RUnion, name: str, arg_values: List[Value], return_rtype: Optional[RType], line: int, arg_kinds: Optional[List[int]], arg_names: Optional[List[Optional[str]]]) -> Value - added:
variable DictEntry
- added:
class BaseNonlocalControl(NonlocalControl) - added:
class CleanupNonlocalControl(NonlocalControl) - added:
class ExceptNonlocalControl(CleanupNonlocalControl) - added:
class FinallyNonlocalControl(CleanupNonlocalControl) - added:
class GeneratorNonlocalControl(BaseNonlocalControl) - added:
class LoopNonlocalControl(NonlocalControl) - added:
class NonlocalControl - added:
class TryFinallyNonlocalControl(NonlocalControl) - added:
constructor CleanupNonlocalControl(outer: NonlocalControl) -> None - added:
constructor ExceptNonlocalControl(outer: NonlocalControl, saved: Union[Value, AssignmentTarget]) -> None - added:
constructor FinallyNonlocalControl(outer: NonlocalControl, ret_reg: Optional[Value], saved: Value) -> None - added:
constructor LoopNonlocalControl(outer: NonlocalControl, continue_block: BasicBlock, break_block: BasicBlock) -> None - added:
constructor TryFinallyNonlocalControl(target: BasicBlock) -> None - added:
method BaseNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - added:
method BaseNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - added:
method BaseNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - added:
method CleanupNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - added:
method CleanupNonlocalControl.gen_cleanup(builder: IRBuilder, line: int) -> None - added:
method CleanupNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - added:
method CleanupNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - added:
method ExceptNonlocalControl.gen_cleanup(builder: IRBuilder, line: int) -> None - added:
method FinallyNonlocalControl.gen_cleanup(builder: IRBuilder, line: int) -> None - added:
method GeneratorNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - added:
method LoopNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - added:
method LoopNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - added:
method LoopNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - added:
method NonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - added:
method NonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - added:
method NonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None - added:
method TryFinallyNonlocalControl.gen_break(builder: IRBuilder, line: int) -> None - added:
method TryFinallyNonlocalControl.gen_continue(builder: IRBuilder, line: int) -> None - added:
method TryFinallyNonlocalControl.gen_return(builder: IRBuilder, value: Value, line: int) -> None
- added:
property BasicBlock.terminated -> bool
- added:
variable str_split_emits - added:
variable str_split_types
- added:
function any_all_helper(builder: IRBuilder, gen: GeneratorExpr, initial_value_op: OpDescription, modify: Callable[[Value], Value], new_value_op: OpDescription) -> Value - added:
function specialize_function(name: str, typ: Optional[RType]=…) -> Callable[[Specializer], Specializer] - added:
function translate_all_call(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_any_call(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_dataclasses_field_call(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_globals(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_isinstance(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_len(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_next_call(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
function translate_safe_generator_call(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -> Optional[Value] - added:
variable Specializer - added:
variable specializers