Skip to content

Upgrading mypy 0.590 to 0.600

Unknown0.590 → 0.600

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: function process_fresh_scc(graph: Graph, scc: List[str], manager: BuildManager) -> None
  • removed: method State.calculate_mros() -> None
  • removed: method State.has_new_submodules() -> bool
  • changed: constructor FindModuleCache(fscache: Optional[FileSystemMetaCache]=…) -> None → constructor FindModuleCache(fscache: Optional[FileSystemCache]=…) -> None
  • changed: function cache_meta_from_dict(meta: Dict[str, Any], data_json: str) -> CacheMeta → function cache_meta_from_dict(meta: Dict[str, Any], data_json: str, deps_json: Optional[str]) -> CacheMeta
  • changed: function get_cache_names(id: str, path: str, manager: BuildManager) -> Tuple[str, str] → function get_cache_names(id: str, path: str, manager: BuildManager) -> Tuple[str, str, Optional[str]]
  • changed: function load_graph(sources: List[BuildSource], manager: BuildManager, old_graph: Optional[Graph]=…) -> Graph → function load_graph(sources: List[BuildSource], manager: BuildManager, old_graph: Optional[Graph]=…, new_modules: Optional[List[State]]=…) -> Graph
  • changed: function verify_module(fscache: FileSystemMetaCache, id: str, path: str) -> bool → function verify_module(fscache: FileSystemCache, id: str, path: str) -> bool
  • added: function compute_lib_path(sources: List[BuildSource], options: Options, alt_lib_path: Optional[str], data_dir: str, fscache: FileSystemCache) -> List[str]
  • added: function json_dumps(obj: Any, debug_cache: bool) -> str
  • added: function process_fresh_modules(graph: Graph, modules: List[str], manager: BuildManager) -> None
  • added: method FindModuleCache.find_lib_path_dirs(dir_chain: str, lib_path: Tuple[str, ...]) -> List[str]
  • added: method FindModuleCache.find_module(id: str, lib_path: Tuple[str, ...], python_executable: Optional[str]) -> Optional[str]
  • added: method State.load_fine_grained_deps() -> None
  • changed: method TypeChecker.analyze_async_iterable_item_type(expr: Expression) -> Type → method TypeChecker.analyze_async_iterable_item_type(expr: Expression) -> Tuple[Type, Type]
  • changed: method TypeChecker.analyze_iterable_item_type(expr: Expression) -> Type → method TypeChecker.analyze_iterable_item_type(expr: Expression) -> Tuple[Type, Type]
  • changed: method TypeChecker.check_compatibility_all_supers(lvalue: NameExpr, lvalue_type: Optional[Type], rvalue: Expression) -> bool → method TypeChecker.check_compatibility_all_supers(lvalue: RefExpr, lvalue_type: Optional[Type], rvalue: Expression) -> bool
  • changed: method TypeChecker.check_compatibility_super(lvalue: NameExpr, lvalue_type: Optional[Type], rvalue: Expression, base: TypeInfo, base_type: Type, base_node: Node) -> bool → method TypeChecker.check_compatibility_super(lvalue: RefExpr, lvalue_type: Optional[Type], rvalue: Expression, base: TypeInfo, base_type: Type, base_node: Node) -> bool
  • added: variable CONFIG_FILES
  • added: variable SHARED_CONFIG_FILES
  • added: variable USER_CONFIG_FILES
  • added: method Server.free_global_state() -> None
  • added: variable MEM_PROFILE
  • changed: constructor SourceFinder(fscache: FileSystemMetaCache) -> None → constructor SourceFinder(fscache: FileSystemCache) -> None
  • changed: function create_source_list(files: Sequence[str], options: Options, fscache: Optional[FileSystemMetaCache]=…, allow_empty_dir: bool=…) -> List[BuildSource] → function create_source_list(files: Sequence[str], options: Options, fscache: Optional[FileSystemCache]=…, allow_empty_dir: bool=…) -> List[BuildSource]
  • removed: function compute_all_mros(symtab: SymbolTable, modules: Dict[str, MypyFile]) -> None
  • removed: function fixup_module_pass_one(tree: MypyFile, modules: Dict[str, MypyFile], quick_and_dirty: bool) -> None
  • removed: function fixup_module_pass_two(tree: MypyFile, modules: Dict[str, MypyFile]) -> None
  • added: function fixup_module(tree: MypyFile, modules: Dict[str, MypyFile], quick_and_dirty: bool) -> None
  • added: function lookup_qualified_typeinfo(modules: Dict[str, MypyFile], name: str, quick_and_dirty: bool) -> TypeInfo
  • removed: class FileSystemMetaCache
  • removed: constructor FileSystemMetaCache() -> None
  • removed: method FileSystemCache.read_with_python_encoding(path: str) -> str
  • removed: method FileSystemMetaCache.exists(path: str) -> bool
  • removed: method FileSystemMetaCache.flush() -> None
  • removed: method FileSystemMetaCache.isdir(path: str) -> bool
  • removed: method FileSystemMetaCache.isfile(path: str) -> bool
  • removed: method FileSystemMetaCache.isfile_case(path: str) -> bool
  • changed: class FileSystemCache(FileSystemMetaCache) → class FileSystemCache
  • changed: constructor FileSystemCache(pyversion: Tuple[int, int]) -> None → constructor FileSystemCache() -> None
  • added: function copy_os_error(e: OSError) -> OSError
  • added: method FileSystemCache.exists(path: str) -> bool
  • added: method FileSystemCache.isdir(path: str) -> bool
  • added: method FileSystemCache.isfile(path: str) -> bool
  • added: method FileSystemCache.isfile_case(path: str) -> bool
  • added: method FileSystemCache.listdir(path: str) -> List[str]
  • added: method FileSystemCache.read(path: str) -> bytes
  • added: method FileSystemCache.stat(path: str) -> os.stat_result
  • removed: variable SHARED_CONFIG_FILES
  • changed: function process_options(args: List[str], require_targets: bool=…, server_options: bool=…) -> Tuple[List[BuildSource], Options] → function process_options(args: List[str], require_targets: bool=…, server_options: bool=…, fscache: Optional[FileSystemCache]=…) -> Tuple[List[BuildSource], Options]
  • changed: function type_check_only(sources: List[BuildSource], bin_dir: Optional[str], options: Options, flush_errors: Optional[Callable[[List[str], bool], None]]) -> BuildResult → function type_check_only(sources: List[BuildSource], bin_dir: Optional[str], options: Options, flush_errors: Optional[Callable[[List[str], bool], None]], fscache: FileSystemCache) -> BuildResult
  • added: variable MEM_PROFILE
  • added: function collect_memory_stats() -> Tuple[Dict[str, int], Dict[str, int]]
  • added: function find_recursive_objects(objs: List[object]) -> None
  • added: function print_memory_profile(run_gc: bool=…) -> None
  • removed: variable ASYNC_ITERABLE_EXPECTED
  • removed: variable ITERABLE_EXPECTED
  • removed: class MroError(Exception)
  • removed: field Argument.initializer
  • removed: field Argument.kind
  • removed: field Argument.type_annotation
  • removed: field Argument.variable
  • removed: field Block.body
  • removed: field Block.is_unreachable
  • removed: field CallExpr.analyzed
  • removed: field CallExpr.arg_kinds
  • removed: field CallExpr.arg_names
  • removed: field CallExpr.args
  • removed: field CallExpr.callee
  • removed: field Context.column
  • removed: field Context.line
  • removed: field FuncBase.info
  • removed: field FuncBase.is_property
  • removed: field FuncBase.type
  • removed: field FuncBase.unanalyzed_type
  • removed: field FuncDef.FLAGS
  • removed: field FuncDef.is_abstract
  • removed: field FuncDef.is_conditional
  • removed: field FuncDef.is_decorated
  • removed: field FuncDef.is_property
  • removed: field FuncDef.original_def
  • removed: field FuncItem.FLAGS
  • removed: field FuncItem.arg_kinds
  • removed: field FuncItem.arg_names
  • removed: field FuncItem.arguments
  • removed: field FuncItem.body
  • removed: field FuncItem.expanded
  • removed: field FuncItem.is_async_generator
  • removed: field FuncItem.is_awaitable_coroutine
  • removed: field FuncItem.is_class
  • removed: field FuncItem.is_coroutine
  • removed: field FuncItem.is_generator
  • removed: field FuncItem.is_overload
  • removed: field FuncItem.is_static
  • removed: field FuncItem.max_pos
  • removed: field FuncItem.min_args
  • removed: field MemberExpr.def_var
  • removed: field MemberExpr.expr
  • removed: field MemberExpr.name
  • removed: field NameExpr.name
  • removed: field RefExpr.fullname
  • removed: field RefExpr.is_inferred_def
  • removed: field RefExpr.is_new_def
  • removed: field RefExpr.kind
  • removed: field RefExpr.node
  • removed: field SymbolTableNode.alias_name
  • removed: field SymbolTableNode.alias_tvars
  • removed: field SymbolTableNode.cross_ref
  • removed: field SymbolTableNode.implicit
  • removed: field SymbolTableNode.is_aliasing
  • removed: field SymbolTableNode.kind
  • removed: field SymbolTableNode.module_hidden
  • removed: field SymbolTableNode.module_public
  • removed: field SymbolTableNode.node
  • removed: field SymbolTableNode.normalized
  • removed: field SymbolTableNode.type_override
  • removed: field Var.FLAGS
  • removed: field Var.info
  • removed: field Var.is_abstract_var
  • removed: field Var.is_classmethod
  • removed: field Var.is_classvar
  • removed: field Var.is_inferred
  • removed: field Var.is_initialized_in_class
  • removed: field Var.is_property
  • removed: field Var.is_ready
  • removed: field Var.is_self
  • removed: field Var.is_settable_property
  • removed: field Var.is_staticmethod
  • removed: field Var.is_suppressed_import
  • removed: field Var.type
  • removed: function linearize_hierarchy(info: TypeInfo) -> List[TypeInfo]
  • removed: function merge(seqs: List[List[TypeInfo]]) -> List[TypeInfo]
  • removed: method TypeInfo.calculate_mro() -> None
  • removed: method TypeInfo.is_cached_subtype_check(left: mypy.types.Instance, right: mypy.types.Instance, proper_subtype: bool=…) -> bool
  • removed: method TypeInfo.record_subtype_cache_entry(left: mypy.types.Instance, right: mypy.types.Instance, proper_subtype: bool=…) -> None
  • removed: method TypeInfo.reset_subtype_cache() -> None
  • removed: variable ENUM_BASECLASS
  • added: constructor FuncBase() -> None
  • added: constructor RefExpr() -> None
  • added: field ForStmt.inferred_iterator_type
  • added: variable FUNCDEF_FLAGS
  • added: variable FUNCITEM_FLAGS
  • added: variable VAR_FLAGS
  • removed: method Options.module_matches_pattern(module: str, pattern: Pattern[str]) -> bool
  • added: method Options.build_per_module_cache() -> None
  • changed: method SemanticAnalyzerPass2.analyze_member_lvalue(lval: MemberExpr) -> None → method SemanticAnalyzerPass2.analyze_member_lvalue(lval: MemberExpr, explicit_type: bool=…) -> None
  • added: class MroError(Exception)
  • added: function calculate_mro(info: TypeInfo) -> None
  • added: function linearize_hierarchy(info: TypeInfo) -> List[TypeInfo]
  • added: function merge(seqs: List[List[TypeInfo]]) -> List[TypeInfo]
  • added: method SemanticAnalyzerPass2.is_nested_within_func_scope() -> bool
  • added: method NodeStripVisitor.visit_for_stmt(node: ForStmt) -> None
  • added: function has_user_bases(info: TypeInfo) -> bool
  • added: method DependencyVisitor.is_self_member_ref(memberexpr: MemberExpr) -> bool
  • added: method DependencyVisitor.visit_await_expr(e: AwaitExpr) -> None
  • removed: function get_all_changed_modules(root_module: str, root_path: str, old_modules: Dict[str, str], new_graph: Dict[str, State]) -> List[Tuple[str, str]]
  • changed: function collect_dependencies(new_modules: Mapping[str, Optional[MypyFile]], deps: Dict[str, Set[str]], graph: Dict[str, State]) -> None → function collect_dependencies(new_modules: Iterable[str], deps: Dict[str, Set[str]], graph: Dict[str, State]) -> None
  • changed: function find_targets_recursive(manager: BuildManager, triggers: Set[str], deps: Dict[str, Set[str]], up_to_date_modules: Set[str]) -> Dict[str, Set[DeferredNode]] → function find_targets_recursive(manager: BuildManager, graph: Graph, triggers: Set[str], deps: Dict[str, Set[str]], up_to_date_modules: Set[str]) -> Tuple[Dict[str, Set[DeferredNode]], Set[str]]
  • changed: function get_module_to_path_map(manager: BuildManager) -> Dict[str, str] → function get_module_to_path_map(graph: Graph) -> Dict[str, str]
  • changed: function replace_modules_with_new_variants(manager: BuildManager, graph: Dict[str, State], old_modules: Dict[str, MypyFile], new_modules: Dict[str, Optional[MypyFile]]) -> None → function replace_modules_with_new_variants(manager: BuildManager, graph: Dict[str, State], old_modules: Dict[str, Optional[MypyFile]], new_modules: Dict[str, Optional[MypyFile]]) -> None
  • added: function ensure_trees_loaded(manager: BuildManager, graph: Dict[str, State], initial: Sequence[str]) -> None
  • added: function find_unloaded_deps(manager: BuildManager, graph: Dict[str, State], initial: Sequence[str]) -> List[str]
  • removed: field CallableType.arg_kinds
  • removed: field CallableType.arg_names
  • removed: field CallableType.arg_types
  • removed: field CallableType.bound_args
  • removed: field CallableType.definition
  • removed: field CallableType.from_type_type
  • removed: field CallableType.implicit
  • removed: field CallableType.is_classmethod_class
  • removed: field CallableType.is_ellipsis_args
  • removed: field CallableType.is_kw_arg
  • removed: field CallableType.is_var_arg
  • removed: field CallableType.min_args
  • removed: field CallableType.name
  • removed: field CallableType.ret_type
  • removed: field CallableType.special_sig
  • removed: field CallableType.variables
  • removed: field FunctionLike.can_be_false
  • removed: field FunctionLike.fallback
  • removed: field Instance.args
  • removed: field Instance.erased
  • removed: field Instance.from_generic_builtin
  • removed: field Instance.invalid
  • removed: field Instance.type
  • removed: field Instance.type_ref
  • removed: field NoneTyp.can_be_true
  • removed: field Type.can_be_false
  • removed: field Type.can_be_true
  • removed: field TypeVarType.fullname
  • removed: field TypeVarType.id
  • removed: field TypeVarType.name
  • removed: field TypeVarType.upper_bound
  • removed: field TypeVarType.values
  • removed: field TypeVarType.variance
  • removed: field UnboundType.args
  • removed: field UnboundType.empty_tuple_index
  • removed: field UnboundType.name
  • removed: field UnboundType.optional
  • removed: field UninhabitedType.can_be_false
  • removed: field UninhabitedType.can_be_true
  • removed: field UnionType.items
  • added: constructor FunctionLike(line: int=…, column: int=…) -> None
  • added: constructor Type(line: int=…, column: int=…) -> None
  • added: method NoneTyp.can_be_true_default() -> bool
  • added: method Type.can_be_false_default() -> bool
  • added: method Type.can_be_true_default() -> bool
  • added: method UninhabitedType.can_be_false_default() -> bool
  • added: method UninhabitedType.can_be_true_default() -> bool
  • added: variable MYPY
  • added: class TypeState
  • added: static method TypeState.is_cached_proper_subtype_check(left: Instance, right: Instance) -> bool
  • added: static method TypeState.is_cached_subtype_check(left: Instance, right: Instance) -> bool
  • added: static method TypeState.record_proper_subtype_cache_entry(left: Instance, right: Instance) -> None
  • added: static method TypeState.record_subtype_cache_entry(left: Instance, right: Instance) -> None
  • added: static method TypeState.reset_all_subtype_caches() -> None
  • added: static method TypeState.reset_all_subtype_caches_for(info: TypeInfo) -> None
  • added: static method TypeState.reset_subtype_caches_for(info: TypeInfo) -> None
  • added: variable MYPY
  • removed: function read_with_python_encoding(path: str, pyversion: Tuple[int, int]) -> Tuple[str, str]
  • added: function decode_python_encoding(source: bytes, pyversion: Tuple[int, int]) -> str
  • added: function replace_object_state(new: object, old: object) -> None