Skip to content

Upgrading mypy 0.641 to 0.650

Unknown0.641 → 0.650

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.

  • added: function run_dmypy(args: List[str]) -> Tuple[str, str, int]
  • added: class ArgTypeExpander
  • added: constructor ArgTypeExpander() -> None
  • added: function map_actuals_to_formals(caller_kinds: List[int], caller_names: Optional[Sequence[Optional[str]]], callee_kinds: List[int], callee_names: Sequence[Optional[str]], caller_arg_type: Callable[[int], Type]) -> List[List[int]]
  • added: function map_formals_to_actuals(caller_kinds: List[int], caller_names: Optional[Sequence[Optional[str]]], callee_kinds: List[int], callee_names: List[Optional[str]], caller_arg_type: Callable[[int], Type]) -> List[List[int]]
  • added: method ArgTypeExpander.expand_actual_type(actual_type: Type, actual_kind: int, formal_name: Optional[str], formal_kind: int) -> Type
  • removed: class DeclarationsFrame(Dict[Key, Optional[Type]])
  • removed: constructor DeclarationsFrame() -> None
  • changed: class Frame(Dict[Key, Type]) → class Frame
  • changed: constructor BuildManager(data_dir: str, search_paths: SearchPaths, ignore_prefix: str, source_set: BuildSourceSet, reports: Reports, options: Options, version_id: str, plugin: Plugin, errors: Errors, flush_errors: Callable[[List[str], bool], None], fscache: FileSystemCache) -> None → constructor BuildManager(data_dir: str, search_paths: SearchPaths, ignore_prefix: str, source_set: BuildSourceSet, reports: Reports, options: Options, version_id: str, plugin: Plugin, plugins_snapshot: Dict[str, str], errors: Errors, flush_errors: Callable[[List[str], bool], None], fscache: FileSystemCache) -> None
  • changed: function load_plugins(options: Options, errors: Errors) -> Plugin → function load_plugins(options: Options, errors: Errors) -> Tuple[Plugin, Dict[str, str]]
  • added: function read_plugins_snapshot(manager: BuildManager) -> Optional[Dict[str, str]]
  • added: function take_module_snapshot(module: types.ModuleType) -> str
  • added: function write_plugins_snapshot(manager: BuildManager) -> None
  • changed: method TypeChecker.check_member_assignment(instance_type: Type, attribute_type: Type, rvalue: Expression, context: Context) -> Tuple[Type, bool] → method TypeChecker.check_member_assignment(instance_type: Type, attribute_type: Type, rvalue: Expression, context: Context) -> Tuple[Type, Type, bool]
  • removed: function map_actuals_to_formals(caller_kinds: List[int], caller_names: Optional[Sequence[Optional[str]]], callee_kinds: List[int], callee_names: Sequence[Optional[str]], caller_arg_type: Callable[[int], Type]) -> List[List[int]]
  • removed: function map_formals_to_actuals(caller_kinds: List[int], caller_names: Optional[Sequence[Optional[str]]], callee_kinds: List[int], callee_names: List[Optional[str]], caller_arg_type: Callable[[int], Type]) -> List[List[int]]
  • removed: method ExpressionChecker.check_op_local(method_name: str, method_type: Type, base_type: Type, arg: Expression, context: Context, local_errors: MessageBuilder) -> Tuple[Type, Type]
  • removed: method ExpressionChecker.check_op_local_by_name(method: str, base_type: Type, arg: Expression, context: Context, local_errors: MessageBuilder) -> Tuple[Type, Type]
  • changed: method ExpressionChecker.apply_method_signature_hook(e: CallExpr, callee: FunctionLike, object_type: Type, signature_hook: Callable[[MethodSigContext], CallableType]) -> FunctionLike → method ExpressionChecker.apply_method_signature_hook(callee: FunctionLike, args: List[Expression], arg_kinds: List[int], context: Context, arg_names: Optional[Sequence[Optional[str]]], object_type: Type, signature_hook: Callable[[MethodSigContext], CallableType]) -> FunctionLike
  • added: method ExpressionChecker.check_for_extra_actual_arguments(callee: CallableType, actual_types: List[Type], actual_kinds: List[int], actual_names: Optional[Sequence[Optional[str]]], all_actuals: List[int], context: Context, messages: Optional[MessageBuilder]) -> Tuple[bool, bool]
  • added: method ExpressionChecker.check_method_call(method_name: str, base_type: Type, method_type: Type, args: List[Expression], arg_kinds: List[int], context: Context, local_errors: Optional[MessageBuilder]=…) -> Tuple[Type, Type]
  • added: method ExpressionChecker.check_method_call_by_name(method: str, base_type: Type, args: List[Expression], arg_kinds: List[int], context: Context, local_errors: Optional[MessageBuilder]=…) -> Tuple[Type, Type]
  • added: method ExpressionChecker.method_fullname(object_type: Type, method_name: str) -> Optional[str]
  • added: method ExpressionChecker.transform_callee_type(callable_name: Optional[str], callee: Type, args: List[Expression], arg_kinds: List[int], context: Context, arg_names: Optional[Sequence[Optional[str]]]=…, object_type: Optional[Type]=…) -> Type
  • removed: function get_actual_type(arg_type: Type, kind: int, tuple_counter: List[int]) -> Type
  • added: method ConstraintBuilderVisitor.visit_literal_type(template: LiteralType) -> List[Constraint]
  • changed: function do_restart(args: argparse.Namespace, allow_sources: bool=…) -> None → function do_restart(args: argparse.Namespace) -> None
  • changed: function main() -> None → function main(argv: List[str]) -> None
  • changed: function request(command: str, *, timeout: Optional[float]=…, **kwds: object) -> Dict[str, Any] → function request(command: str, *, timeout: Optional[int]=…, **kwds: object) -> Dict[str, Any]
  • added: class AugmentedHelpFormatter(argparse.RawDescriptionHelpFormatter)
  • added: constructor AugmentedHelpFormatter(prog: str) -> None
  • added: function console_entry() -> None
  • added: function fail(msg: str) -> None
  • added: function alive(pid: int) -> bool
  • added: function kill(pid: int) -> None
  • added: variable GetExitCodeProcess
  • added: variable OpenProcess
  • added: variable PROCESS_QUERY_LIMITED_INFORMATION
  • added: variable kernel32
  • removed: field Server.last_sources
  • removed: method Server.create_listening_socket() -> socket.socket
  • removed: variable SOCKET_NAME
  • changed: function daemonize(func: Callable[[], None], log_file: Optional[str]=…) -> int → function daemonize(options: Options, timeout: Optional[int]=…, log_file: Optional[str]=…) -> int
  • changed: method Server.cmd_recheck() -> Dict[str, object] → method Server.cmd_recheck(remove: Optional[List[str]]=…, update: Optional[List[str]]=…) -> Dict[str, object]
  • changed: method Server.find_changed(sources: List[BuildSource]) -> Tuple[List[Tuple[str, str]], List[Tuple[str, str]]] → method Server.find_changed(sources: List[BuildSource]) -> ChangesAndRemovals
  • changed: method Server.fine_grained_increment(sources: List[BuildSource]) -> Dict[str, Any] → method Server.fine_grained_increment(sources: List[BuildSource], remove: Optional[List[str]]=…, update: Optional[List[str]]=…) -> Dict[str, Any]
  • added: method Server.update_changed(sources: List[BuildSource], remove: List[str], update: List[str]) -> ChangesAndRemovals
  • added: variable CONNECTION_NAME
  • added: variable ChangesAndRemovals
  • added: variable ModulePathPair
  • added: variable ModulePathPairs
  • changed: function receive(sock: socket.socket) -> Any → function receive(connection: IPCBase) -> Any
  • added: method EraseTypeVisitor.visit_literal_type(t: LiteralType) -> Type
  • changed: method Errors.report(line: int, column: int, message: str, blocker: bool=…, severity: str=…, file: Optional[str]=…, only_once: bool=…, origin_line: Optional[int]=…, offset: int=…) -> None → method Errors.report(line: int, column: Optional[int], message: str, blocker: bool=…, severity: str=…, file: Optional[str]=…, only_once: bool=…, origin_line: Optional[int]=…, offset: int=…) -> None
  • added: method ExpandTypeVisitor.visit_literal_type(t: LiteralType) -> Type
  • added: method TypeFixer.visit_literal_type(lt: LiteralType) -> None
  • removed: property FileSystemWatcher.paths -> AbstractSet[str]
  • changed: method FileSystemWatcher.find_changed() -> Set[str] → method FileSystemWatcher.find_changed() -> AbstractSet[str]
  • added: method FileSystemWatcher.update_changed(remove: List[str], update: List[str]) -> AbstractSet[str]
  • added: method TypeIndirectionVisitor.visit_literal_type(t: types.LiteralType) -> Set[str]
  • added: method InterpretedPlugin.get_dynamic_class_hook(fullname: str) -> Optional[Callable[[mypy.plugin.DynamicClassDefContext], None]]
  • added: class IPCBase
  • added: class IPCClient(IPCBase)
  • added: class IPCException(Exception)
  • added: class IPCServer(IPCBase)
  • added: constructor IPCBase(name: str) -> None
  • added: constructor IPCClient(name: str, timeout: Optional[int]) -> None
  • added: constructor IPCServer(name: str, timeout: Optional[int]=…) -> None
  • added: field IPCBase.connection
  • added: field IPCServer.BUFFER_SIZE
  • added: method IPCBase.close() -> None
  • added: method IPCBase.read() -> bytes
  • added: method IPCBase.write(data: bytes) -> None
  • added: method IPCServer.cleanup() -> None
  • added: property IPCServer.connection_name -> str
  • added: variable DisconnectNamedPipe
  • added: variable FlushFileBuffers
  • added: variable MYPY
  • added: variable kernel32
  • added: method TypeJoinVisitor.visit_literal_type(t: LiteralType) -> Type
  • added: method TypeMeetVisitor.visit_literal_type(t: LiteralType) -> Type
  • added: method MessageBuilder.too_many_arguments_from_typed_dict(callee: CallableType, arg_type: TypedDictType, context: Context) -> None
  • changed: constructor SymbolTableNode(kind: int, node: Optional[SymbolNode], module_public: bool=…, implicit: bool=…, module_hidden: bool=…, *, no_serialize: bool=…) -> None → constructor SymbolTableNode(kind: int, node: Optional[SymbolNode], module_public: bool=…, implicit: bool=…, module_hidden: bool=…, *, plugin_generated: bool=…, no_serialize: bool=…) -> None
  • added: field MypyFile.plugin_deps
  • added: field CheckerPluginInterface.options
  • added: field SemanticAnalyzerPluginInterface.cur_mod_id
  • added: field TypeAnalyzerPluginInterface.options
  • added: method ChainedPlugin.get_dynamic_class_hook(fullname: str) -> Optional[Callable[[DynamicClassDefContext], None]]
  • added: method DefaultPlugin.get_attribute_hook(fullname: str) -> Optional[Callable[[AttributeContext], Type]]
  • added: method Plugin.get_dynamic_class_hook(fullname: str) -> Optional[Callable[[DynamicClassDefContext], None]]
  • added: method SemanticAnalyzerPluginInterface.add_plugin_dependency(trigger: str, target: Optional[str]=…) -> None
  • added: method SemanticAnalyzerPluginInterface.add_symbol_table_node(name: str, stnode: SymbolTableNode) -> None
  • added: method SemanticAnalyzerPluginInterface.qualified_name(n: str) -> str
  • added: method WrapperPlugin.get_dynamic_class_hook(fullname: str) -> Optional[Callable[[DynamicClassDefContext], None]]
  • added: variable DynamicClassDefContext
  • changed: constructor MethodAdder(info: TypeInfo, function_type: Instance) -> None → constructor MethodAdder(ctx: mypy.plugin.ClassDefContext) -> None
  • added: function add_method(ctx: ClassDefContext, name: str, args: List[Argument], return_type: Type, self_type: Optional[Type]=…, tvar_def: Optional[TypeVarDef]=…) -> None
  • added: function array_constructor_callback(ctx: mypy.plugin.FunctionContext) -> Type
  • added: function array_getitem_callback(ctx: mypy.plugin.MethodContext) -> Type
  • added: function array_iter_callback(ctx: mypy.plugin.MethodContext) -> Type
  • added: function array_raw_callback(ctx: mypy.plugin.AttributeContext) -> Type
  • added: function array_setitem_callback(ctx: mypy.plugin.MethodSigContext) -> CallableType
  • added: function array_value_callback(ctx: mypy.plugin.AttributeContext) -> Type
  • added: field MemoryXmlReporter.control_fixer
  • added: method SameTypeVisitor.visit_literal_type(left: LiteralType) -> bool
  • added: function assert_will_always_fail(s: AssertStmt, options: Options) -> bool
  • added: method SemanticAnalyzerPass2.add_plugin_dependency(trigger: str, target: Optional[str]=…) -> None
  • added: method SemanticAnalyzerPass2.apply_dynamic_class_hook(s: AssignmentStmt) -> None
  • changed: method EnumCallAnalyzer.check_enum_call(node: Expression, var_name: Optional[str], is_func_scope: bool) -> Optional[TypeInfo] → method EnumCallAnalyzer.check_enum_call(node: Expression, var_name: str, is_func_scope: bool) -> Optional[TypeInfo]
  • added: method SnapshotTypeVisitor.visit_literal_type(typ: LiteralType) -> SnapshotItem
  • added: method TypeReplaceVisitor.visit_literal_type(typ: LiteralType) -> None
  • changed: method NodeStripVisitor.strip_type_info(info: TypeInfo) -> None → method NodeStripVisitor.strip_type_info(info: TypeInfo) -> List[SymbolNode]
  • added: method DependencyVisitor.process_isinstance_call(e: CallExpr) -> None
  • added: method TypeTriggersVisitor.visit_literal_type(typ: LiteralType) -> List[str]
  • added: method StubGenerator.add_coroutine_decorator(func: FuncDef, name: str, require_name: str) -> None
  • changed: function generate_c_function_stub(module: ModuleType, name: str, obj: object, output: List[str], self_var: Optional[str]=…, sigs: Dict[str, str]=…, class_name: Optional[str]=…, class_sigs: Dict[str, str]=…) -> None → function generate_c_function_stub(module: ModuleType, name: str, obj: object, output: List[str], imports: List[str], self_var: Optional[str]=…, sigs: Dict[str, str]=…, class_name: Optional[str]=…, class_sigs: Dict[str, str]=…) -> None
  • changed: function generate_c_type_stub(module: ModuleType, class_name: str, obj: type, output: List[str], sigs: Dict[str, str]=…, class_sigs: Dict[str, str]=…) -> None → function generate_c_type_stub(module: ModuleType, class_name: str, obj: type, output: List[str], imports: List[str], sigs: Dict[str, str]=…, class_sigs: Dict[str, str]=…) -> None
  • added: function generate_c_property_stub(name: str, obj: object, output: List[str], readonly: bool) -> None
  • added: function is_c_property(obj: object) -> bool
  • added: function is_c_property_readonly(prop: object) -> bool
  • added: function strip_or_import(typ: str, module: ModuleType, imports: List[str]) -> str
  • changed: function infer_sig_from_docstring(docstr: str, name: str) -> Optional[str] → function infer_sig_from_docstring(docstr: str, name: str) -> Optional[Tuple[str, str]]
  • added: function infer_prop_type_from_docstring(docstr: str) -> Optional[str]
  • added: method ProperSubtypeVisitor.visit_literal_type(left: LiteralType) -> bool
  • added: method SubtypeVisitor.visit_literal_type(t: LiteralType) -> bool
  • added: method TypeQuery.visit_literal_type(t: LiteralType) -> T
  • added: method TypeTranslator.visit_literal_type(t: LiteralType) -> Type
  • added: method TypeVisitor.visit_literal_type(t: LiteralType) -> T
  • added: method TypeAnalyser.visit_literal_type(t: LiteralType) -> Type
  • added: method TypeAnalyserPass3.visit_literal_type(t: LiteralType) -> None
  • added: class LiteralType(Type)
  • added: constructor LiteralType(value: LiteralValue, fallback: Instance, line: int=…, column: int=…) -> None
  • added: method LiteralType.accept(visitor: TypeVisitor[T]) -> T
  • added: method LiteralType.serialize() -> Union[JsonDict, str]
  • added: method TypeStrVisitor.visit_literal_type(t: LiteralType) -> str
  • added: static method LiteralType.deserialize(data: JsonDict) -> LiteralType
  • added: variable LiteralValue