Skip to content

Upgrading mypy 0.750 to 0.760

Unknown0.750 → 0.760

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.

  • 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.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • removed: field State.child_modules
  • changed: function write_cache(id: str, path: str, tree: MypyFile, dependencies: List[str], suppressed: List[str], child_modules: List[str], dep_prios: List[int], dep_lines: List[int], old_interface_hash: str, source_hash: str, ignore_all: bool, manager: BuildManager) -> Tuple[str, Optional[CacheMeta]] → function write_cache(id: str, path: str, tree: MypyFile, dependencies: List[str], suppressed: List[str], dep_prios: List[int], dep_lines: List[int], old_interface_hash: str, source_hash: str, ignore_all: bool, manager: BuildManager) -> Tuple[str, Optional[CacheMeta]]
  • added: method TypeChecker.inference_error_fallback_type(type: Type) -> Type
  • added: method TypeChecker.try_infer_partial_generic_type_from_assignment(lvalue: Lvalue, rvalue: Expression) -> None
  • added: function is_operator_method(fullname: Optional[str]) -> bool
  • added: method ExpressionChecker.get_partial_self_var(expr: MemberExpr) -> Optional[Var]
  • changed: function add_class_tvars(t: ProperType, itype: Instance, isuper: Optional[Instance], is_classmethod: bool, builtin_type: Callable[[str], Instance], original_type: Type, original_vars: Optional[List[TypeVarDef]]=…) -> Type → function add_class_tvars(t: ProperType, isuper: Optional[Instance], is_classmethod: bool, original_type: Type, original_vars: Optional[List[TypeVarDef]]=…) -> Type
  • removed: class InterpretedPlugin
  • removed: constructor InterpretedPlugin(options: Options) -> None
  • removed: method InterpretedPlugin.get_additional_deps(file: MypyFile) -> List[Tuple[int, str, int]]
  • removed: method InterpretedPlugin.get_attribute_hook(fullname: str) -> Optional[Callable[[mypy.plugin.AttributeContext], Type]]
  • removed: method InterpretedPlugin.get_base_class_hook(fullname: str) -> Optional[Callable[[mypy.plugin.ClassDefContext], None]]
  • removed: method InterpretedPlugin.get_class_decorator_hook(fullname: str) -> Optional[Callable[[mypy.plugin.ClassDefContext], None]]
  • removed: method InterpretedPlugin.get_customize_class_mro_hook(fullname: str) -> Optional[Callable[[mypy.plugin.ClassDefContext], None]]
  • removed: method InterpretedPlugin.get_dynamic_class_hook(fullname: str) -> Optional[Callable[[mypy.plugin.DynamicClassDefContext], None]]
  • removed: method InterpretedPlugin.get_function_hook(fullname: str) -> Optional[Callable[[mypy.plugin.FunctionContext], Type]]
  • removed: method InterpretedPlugin.get_metaclass_hook(fullname: str) -> Optional[Callable[[mypy.plugin.ClassDefContext], None]]
  • removed: method InterpretedPlugin.get_method_hook(fullname: str) -> Optional[Callable[[mypy.plugin.MethodContext], Type]]
  • removed: method InterpretedPlugin.get_method_signature_hook(fullname: str) -> Optional[Callable[[mypy.plugin.MethodSigContext], CallableType]]
  • removed: method InterpretedPlugin.get_type_analyze_hook(fullname: str) -> Optional[Callable[[mypy.plugin.AnalyzeTypeContext], Type]]
  • removed: method InterpretedPlugin.lookup_fully_qualified(fullname: str) -> Optional[SymbolTableNode]
  • removed: method InterpretedPlugin.report_config_data(ctx: mypy.plugin.ReportConfigContext) -> Any
  • removed: method InterpretedPlugin.set_modules(modules: Dict[str, MypyFile]) -> None
  • changed: method MessageBuilder.no_variant_matches_arguments(plausible_targets: List[CallableType], overload: Overloaded, arg_types: List[Type], context: Context) -> None → method MessageBuilder.no_variant_matches_arguments(plausible_targets: List[CallableType], overload: Overloaded, arg_types: List[Type], context: Context, *, code: Optional[ErrorCode]=…) -> None
  • added: method MessageBuilder.format_long_tuple_type(typ: TupleType) -> str
  • added: method MessageBuilder.generate_incompatible_tuple_error(lhs_types: List[Type], rhs_types: List[Type], context: Context, msg: str=…, code: Optional[ErrorCode]=…) -> None
  • added: method MessageBuilder.try_report_long_tuple_assignment_error(subtype: ProperType, supertype: ProperType, context: Context, msg: str=…, subtype_label: Optional[str]=…, supertype_label: Optional[str]=…, code: Optional[ErrorCode]=…) -> bool
  • removed: class WrapperPlugin(Plugin)
  • removed: constructor WrapperPlugin(plugin: mypy.interpreted_plugin.InterpretedPlugin) -> None
  • removed: method WrapperPlugin.get_additional_deps(file: MypyFile) -> List[Tuple[int, str, int]]
  • removed: method WrapperPlugin.get_attribute_hook(fullname: str) -> Optional[Callable[[AttributeContext], Type]]
  • removed: method WrapperPlugin.get_base_class_hook(fullname: str) -> Optional[Callable[[ClassDefContext], None]]
  • removed: method WrapperPlugin.get_class_decorator_hook(fullname: str) -> Optional[Callable[[ClassDefContext], None]]
  • removed: method WrapperPlugin.get_customize_class_mro_hook(fullname: str) -> Optional[Callable[[ClassDefContext], None]]
  • removed: method WrapperPlugin.get_dynamic_class_hook(fullname: str) -> Optional[Callable[[DynamicClassDefContext], None]]
  • removed: method WrapperPlugin.get_function_hook(fullname: str) -> Optional[Callable[[FunctionContext], Type]]
  • removed: method WrapperPlugin.get_metaclass_hook(fullname: str) -> Optional[Callable[[ClassDefContext], None]]
  • removed: method WrapperPlugin.get_method_hook(fullname: str) -> Optional[Callable[[MethodContext], Type]]
  • removed: method WrapperPlugin.get_method_signature_hook(fullname: str) -> Optional[Callable[[MethodSigContext], CallableType]]
  • removed: method WrapperPlugin.get_type_analyze_hook(fullname: str) -> Optional[Callable[[AnalyzeTypeContext], Type]]
  • removed: method WrapperPlugin.lookup_fully_qualified(fullname: str) -> Optional[SymbolTableNode]
  • removed: method WrapperPlugin.report_config_data(ctx: ReportConfigContext) -> Any
  • removed: method WrapperPlugin.set_modules(modules: Dict[str, MypyFile]) -> None
  • removed: variable plugin_types
  • changed: constructor ProperSubtypeVisitor(right: Type, *, ignore_promotions: bool=…, erase_instances: bool=…) -> None → constructor ProperSubtypeVisitor(right: Type, *, ignore_promotions: bool=…, erase_instances: bool=…, keep_erased_types: bool=…) -> None
  • changed: function is_proper_subtype(left: Type, right: Type, *, ignore_promotions: bool=…, erase_instances: bool=…) -> bool → function is_proper_subtype(left: Type, right: Type, *, ignore_promotions: bool=…, erase_instances: bool=…, keep_erased_types: bool=…) -> bool
  • changed: static method ProperSubtypeVisitor.build_subtype_kind(*, ignore_promotions: bool=…, erase_instances: bool=…) -> SubtypeKind → static method ProperSubtypeVisitor.build_subtype_kind(*, ignore_promotions: bool=…, erase_instances: bool=…, keep_erased_types: bool=…) -> SubtypeKind
  • added: method TypeFormatter.visit_any(t: AnyType) -> str
  • changed: function make_simplified_union(items: Sequence[Type], line: int=…, column: int=…) -> ProperType → function make_simplified_union(items: Sequence[Type], line: int=…, column: int=…, *, keep_erased: bool=…) -> ProperType
  • removed: field PartialType.inner_types
  • changed: constructor PartialType(type: Optional[mypy.nodes.TypeInfo], var: mypy.nodes.Var, inner_types: List[Type]) -> None → constructor PartialType(type: Optional[mypy.nodes.TypeInfo], var: mypy.nodes.Var) -> None
  • changed: function generate_setup_for_class(cl: ClassIR, func_name: str, defaults_fn: Optional[FuncIR], vtable_name: str, emitter: Emitter) -> None → function generate_setup_for_class(cl: ClassIR, func_name: str, defaults_fn: Optional[FuncIR], vtable_name: str, shadow_vtable_name: Optional[str], emitter: Emitter) -> None
  • changed: function generate_vtable(entries: VTableEntries, vtable_name: str, emitter: Emitter, subtables: List[Tuple[ClassIR, str]]) -> None → function generate_vtable(entries: VTableEntries, vtable_name: str, emitter: Emitter, subtables: List[Tuple[ClassIR, str]], shadow: bool) -> None
  • changed: function generate_vtables(base: ClassIR, vtable_setup_name: str, vtable_name: str, emitter: Emitter) -> str → function generate_vtables(base: ClassIR, vtable_setup_name: str, vtable_name: str, emitter: Emitter, shadow: bool) -> str
  • changed: method IRBuilder.gen_glue_method(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int) -> FuncIR → method IRBuilder.gen_glue_method(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pycall: bool) -> FuncIR
  • changed: method IRBuilder.gen_glue_property(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int) -> FuncIR → method IRBuilder.gen_glue_property(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, line: int, do_pygetattr: bool) -> FuncIR
  • changed: method IRBuilder.py_call(function: Value, arg_values: List[Value], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[List[Optional[str]]]=…) -> Value → method IRBuilder.py_call(function: Value, arg_values: List[Value], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[Sequence[Optional[str]]]=…) -> Value
  • changed: method IRBuilder.py_method_call(obj: Value, method_name: str, arg_values: List[Value], line: int, arg_kinds: Optional[List[int]]=…, arg_names: Optional[List[Optional[str]]]=…) -> Value → 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
  • changed: method IRBuilder.setup_non_ext_dict(cdef: ClassDef, bases: Value) -> Value → method IRBuilder.setup_non_ext_dict(cdef: ClassDef, metaclass: Value, bases: Value) -> Value
  • 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: method IRBuilder.find_non_ext_metaclass(cdef: ClassDef, bases: Value) -> Value
  • added: method IRBuilder.gen_glue(sig: FuncSignature, target: FuncIR, cls: ClassIR, base: ClassIR, fdef: FuncItem, *, do_py_ops: bool=…) -> FuncIR
  • changed: constructor NonExtClassInfo(non_ext_dict: Value, non_ext_bases: Value, non_ext_anns: Value) -> None → constructor NonExtClassInfo(dict: Value, bases: Value, anns: Value, metaclass: Value) -> None