mypy breaking changes
Updated December 4, 2026
On this page
Latest version 2.4.1, released October 28, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 1.20.2 to 2.4.0: 225 breaking changes in 4 versions.
- From 0.931 to 2.4.0: 1,751 breaking changes in 20 versions.
mypy 2.4.0 breaking changes
- Signature changed
mypy.build.DefaultPlugin.get_function_signature_hook
Was def get_function_signature_hook(self, fullname: str) -> Callable[[FunctionSigContext], FunctionLike] | None; now def get_function_signature_hook(self, fullname: str) -> Callable[[FunctionSigContext], CallableType] | None. pypi.org - Signature changed
mypy.build.DefaultPlugin.get_method_signature_hook
Was def get_method_signature_hook(self, fullname: str) -> Callable[[MethodSigContext], FunctionLike] | None; now def get_method_signature_hook(self, fullname: str) -> Callable[[MethodSigContext], CallableType] | None. pypi.org - Signature changed
mypy.build.process_stale_scc_implementation
Was def process_stale_scc_implementation(graph: Graph, stale: list[str], manager: BuildManager, meta_files: list[str]) -> dict[str, ModuleResult]; now def process_stale_scc_implementation(graph: Graph, stale: list[str], manager... pypi.org - Signature changed
mypy.build.process_stale_scc_interface
Was def process_stale_scc_interface(graph: Graph, ascc: SCC, manager: BuildManager, from_cache: set[str]) -> list[tuple[str, ModuleResult, str]]; now def process_stale_scc_interface(graph: Graph, ascc: SCC, manager: BuildManager... pypi.org - Signature changed
mypy.build.TypeChecker.type_requires_usage
Was def type_requires_usage(self, typ: Type) -> tuple[str, ErrorCode] | None; now def type_requires_usage(self, typ: Type, s: ExpressionStmt) -> tuple[str, ErrorCode] | None. pypi.org - Signature changed
mypy.build.write_cache
Was def write_cache(id: str, path: str, tree: MypyFile, dependencies: list[str], suppressed: list[str], suppressed_deps_opts: bytes, imports_ignored: dict[int, list[str]], dep_prios: list[int], dep_lines: list[int], old_interface_hash... pypi.org - Signature changed
mypy.cache.read_literal
Was def read_literal(data: ReadBuffer, tag: Tag) -> int | str | bool | float; now def read_literal(data: ReadBuffer, tag: Tag) -> int | str | bool | float | SentinelValue. pypi.org - Signature changed
mypy.cache.write_literal
Was def write_literal(data: WriteBuffer, value: int | str | bool | float | complex | None) -> None; now def write_literal(data: WriteBuffer, value: int | str | bool | float | complex | SentinelValue | None) -> None. pypi.org - Signature changed
mypy.checker.AsPattern.__init__
Was def __init__(self, pattern: Pattern | None, name: NameExpr | None) -> None; now def __init__(self, pattern: ConcretePattern | None, name: NameExpr | None) -> None. pypi.org - Signature changed
mypy.checker.AsPattern.pattern
Was pattern: Pattern | None; now pattern: ConcretePattern | None. pypi.org - Signature changed
mypy.checker.MatchStmt.__init__
Was def __init__(self, subject: Expression, patterns: list[Pattern], guards: list[Expression | None], bodies: list[Block]) -> None; now def __init__(self, subject: Expression, patterns: list[ConcretePattern], guards: list[Expression |... pypi.org - Signature changed
mypy.checker.MatchStmt.patterns
Was patterns: list[Pattern]; now patterns: list[ConcretePattern]. pypi.org - Signature changed
mypy.checker.PatternChecker.contract_starred_pattern_types
Was def contract_starred_pattern_types(self, types: list[Type], star_pos: int | None, num_patterns: int) -> list[Type]; now def contract_starred_pattern_types(self, types: list[Type], star_pos: int | None, num_required_patterns: int) ->... pypi.org - Signature changed
mypy.checker.TransformVisitor.pattern
Was def pattern(self, pattern: Pattern) -> Pattern; now def pattern(self, pattern: ConcretePattern) -> ConcretePattern. pypi.org - Signature changed
mypy.checkexpr.DictionaryComprehension.__init__
Was def __init__(self, key: Expression, value: Expression, indices: list[Lvalue], sequences: list[Expression], condlists: list[list[Expression]], is_async: list[bool]) -> None; now def __init__(self, key: Expression | None, value... pypi.org - Signature changed
mypy.checkexpr.DictionaryComprehension.key
Was key: Expression; now key: Expression | None. pypi.org - Signature changed
mypy.checkexpr.merge_typevars_in_callables_by_name
Was def merge_typevars_in_callables_by_name(callables: Sequence[CallableType]) -> tuple[list[CallableType], list[TypeVarType]]; now def merge_typevars_in_callables_by_name(callables: Sequence[CallableType]) -> tuple[list[CallableType]... pypi.org - Signature changed
mypy.checkpattern.ClassPattern.__init__
Was def __init__(self, class_ref: RefExpr, positionals: list[Pattern], keyword_keys: list[str], keyword_values: list[Pattern]) -> None; now def __init__(self, class_ref: RefExpr, positionals: list[ConcretePattern], keyword_keys: list[str]... pypi.org - Signature changed
mypy.checkpattern.ClassPattern.keyword_values
Was keyword_values: list[Pattern]; now keyword_values: list[ConcretePattern]. pypi.org - Signature changed
mypy.checkpattern.ClassPattern.positionals
Was positionals: list[Pattern]; now positionals: list[ConcretePattern]. pypi.org - Signature changed
mypy.checkpattern.MappingPattern.__init__
Was def __init__(self, keys: list[Expression], values: list[Pattern], rest: NameExpr | None) -> None; now def __init__(self, keys: list[Expression], values: list[ConcretePattern], rest: NameExpr | None) -> None. pypi.org - Signature changed
mypy.checkpattern.MappingPattern.values
Was values: list[Pattern]; now values: list[ConcretePattern]. pypi.org - Signature changed
mypy.checkpattern.OrPattern.__init__
Was def __init__(self, patterns: list[Pattern]) -> None; now def __init__(self, patterns: list[ConcretePattern]) -> None. pypi.org - Signature changed
mypy.checkpattern.OrPattern.patterns
Was patterns: list[Pattern]; now patterns: list[ConcretePattern]. pypi.org - Signature changed
mypy.checkpattern.SequencePattern.__init__
Was def __init__(self, patterns: list[Pattern]) -> None; now def __init__(self, patterns: list[ConcretePattern]) -> None. pypi.org - Signature changed
mypy.checkpattern.SequencePattern.patterns
Was patterns: list[Pattern]; now patterns: list[ConcretePattern]. pypi.org - Signature changed
mypy.exprtotype.parse_type_string
Was def parse_type_string(expr_string: str, expr_fallback_name: str, line: int, column: int) -> ProperType; now def parse_type_string(expr: StrExpr, options: Options) -> ProperType. pypi.org - Signature changed
mypy.nativeparse.build_fstring_join
Was def build_fstring_join(data: ReadBuffer, items: list[Expression]) -> Expression; now def build_fstring_join(data: ReadBuffer, items: list[Expression], set_has_surrogates: bool = False) -> Expression. pypi.org - Signature changed
mypy.nativeparse.read_pattern
Was def read_pattern(state: State, data: ReadBuffer) -> Pattern; now def read_pattern(state: State, data: ReadBuffer) -> ConcretePattern. pypi.org - Signature changed
mypy.nativeparse.read_type
Was def read_type(state: State, data: ReadBuffer) -> Type; now def read_type(state: State, data: ReadBuffer, always_allow_star: bool = False) -> Type. pypi.org - Signature changed
mypy.nodes.read_literal
Was def read_literal(data: ReadBuffer, tag: Tag) -> int | str | bool | float; now def read_literal(data: ReadBuffer, tag: Tag) -> int | str | bool | float | SentinelValue. pypi.org - Signature changed
mypy.nodes.write_literal
Was def write_literal(data: WriteBuffer, value: int | str | bool | float | complex | None) -> None; now def write_literal(data: WriteBuffer, value: int | str | bool | float | complex | SentinelValue | None) -> None. pypi.org - Signature changed
mypy.plugins.default.call_singledispatch_function_callback
Was def call_singledispatch_function_callback(ctx: MethodSigContext) -> FunctionLike; now def call_singledispatch_function_callback(ctx: MethodSigContext) -> CallableType. pypi.org - Signature changed
mypy.plugins.singledispatch.call_singledispatch_function_callback
Was def call_singledispatch_function_callback(ctx: MethodSigContext) -> FunctionLike; now def call_singledispatch_function_callback(ctx: MethodSigContext) -> CallableType. pypi.org - Signature changed
mypy.test.test_nativeparse.temp_source
Was def temp_source(text: str) -> Iterator[str]; now def temp_source(text: str, encoding: str = 'utf-8') -> Iterator[str]. pypi.org - Signature changed
mypy.test.testcmdline.parse_args
Was def parse_args(line: str) -> list[str]; now def parse_args(text: str, step: int) -> list[str]. pypi.org - Signature changed
mypy.test.testtypegen.SkippedNodeSearcher.visit_ellipsis
Was def visit_ellipsis(self, o: EllipsisExpr, /) -> None; now def visit_ellipsis(self, n: EllipsisExpr) -> None. pypi.org - Signature changed
mypy.types.read_literal
Was def read_literal(data: ReadBuffer, tag: Tag) -> int | str | bool | float; now def read_literal(data: ReadBuffer, tag: Tag) -> int | str | bool | float | SentinelValue. pypi.org - Signature changed
mypy.types.write_literal
Was def write_literal(data: WriteBuffer, value: int | str | bool | float | complex | None) -> None; now def write_literal(data: WriteBuffer, value: int | str | bool | float | complex | SentinelValue | None) -> None. pypi.org
mypy 2.2.0 breaking changes
- Signature changed
mypy.applytype.CallableType.__init__
Was def __init__(self, arg_types: Sequence[Type], arg_kinds: list[ArgKind], arg_names: Sequence[str | None], ret_type: Type, fallback: Instance, name: str | None = None, definition: SymbolNode | None = None, variables... pypi.org - Signature changed
mypy.applytype.CallableType.copy_modified
Was def copy_modified(self: CT, arg_types: Bogus[Sequence[Type]] = _dummy, arg_kinds: Bogus[list[ArgKind]] = _dummy, arg_names: Bogus[Sequence[str | None]] = _dummy, ret_type: Bogus[Type] = _dummy, fallback: Bogus[Instance] = _dummy, name... pypi.org - Signature changed
mypy.applytype.get_target_type
Was def get_target_type(tvar: TypeVarLikeType, type: Type, callable: CallableType, report_incompatible_typevar_value: Callable[[CallableType, Type, str, Context], None], context: Context, skip_unsatisfied: bool) -> Type | None; now def... pypi.org - Signature changed
mypy.applytype.UninhabitedType.__init__
Was def __init__(self, line: int = -1, column: int = -1) -> None; now def __init__(self, line: int = -1, column: int = -1, *, ambiguous: bool = False) -> None. pypi.org - Signature changed
mypy.argmap.TypedDictType.__init__
Was def __init__(self, items: dict[str, Type], required_keys: set[str], readonly_keys: set[str], fallback: Instance, line: int = -1, column: int = -1) -> None; now def __init__(self, items: dict[str, Type], required_keys: set[str]... pypi.org - Signature changed
mypy.argmap.TypedDictType.copy_modified
Was def copy_modified(self, *, fallback: Instance | None = None, item_types: list[Type] | None = None, item_names: list[str] | None = None, required_keys: set[str] | None = None, readonly_keys: set[str] | None = None) -> TypedDictType; now... pypi.org - Signature changed
mypy.argmap.TypedDictType.zipall
Was def zipall(self, right: TypedDictType) -> Iterable[tuple[str, Type | None, Type | None]]; now def zipall(self, right: TypedDictType) -> Iterable[tuple[str, TypedDictItem, TypedDictItem]]. pypi.org - Signature changed
mypy.build.BuildManager.parse_file
Was def parse_file(self, id: str, path: str, source: str, options: Options, raw_data: FileRawData | None = None) -> MypyFile; now def parse_file(self, id: str, path: str, source: str | None, options: Options, raw_data: FileRawData | None =... pypi.org - Signature changed
mypy.build.BuildManager.parse_files_threaded_raw
Was def parse_files_threaded_raw(self, sequential_states: list[State], parallel_states: list[State]) -> tuple[list[State], set[State]]; now def parse_files_threaded_raw(self, states: list[State]) -> tuple[list[State], set[State]]. pypi.org - Signature changed
mypy.build.MessageBuilder.note_defined_here
Was def note_defined_here(self, callee: CallableType, context: Context) -> None; now def note_defined_here(self, callee: CallableType, context: Context, code: ErrorCode = codes.CALL_ARG) -> None. pypi.org
And 63 more in this version. Sign up to see every change
mypy 2.1.0 breaking changes
- Signature changed
mypy.build.Errors.__init__
Was def __init__(self, options: Options, *, read_source: Callable[[str], list[str] | None] | None = None, hide_error_codes: bool | None = None) -> None; now def __init__(self, options: Options, *, read_source: Callable[[str], list[str] |... pypi.org
mypy 2.0.0 breaking changes
- Signature changed
mypy.argmap.ArgumentInferContext
Was class ArgumentInferContext(NamedTuple); now class ArgumentInferContext. pypi.org - Signature changed
mypy.argmap.ArgumentInferContext.iterable_type
Was iterable_type: Instance; now iterable_type: Final. pypi.org - Signature changed
mypy.argmap.ArgumentInferContext.mapping_type
Was mapping_type: Instance; now mapping_type: Final. pypi.org - Signature changed
mypy.binder.CurrentType
Was class CurrentType(NamedTuple); now class CurrentType. pypi.org - Signature changed
mypy.binder.CurrentType.from_assignment
Was from_assignment: bool; now from_assignment: Final. pypi.org - Signature changed
mypy.binder.CurrentType.type
Was type: Type; now type: Final. pypi.org - Signature changed
mypy.build_worker.worker.load_states
Was def load_states(scc: SCC, graph: Graph, manager: BuildManager, import_errors: dict[str, list[ErrorInfo]], mod_data: dict[str, tuple[bytes, FileRawData | None]]) -> None; now def load_states(mod_ids: list[str], graph: Graph, manager... pypi.org - Signature changed
mypy.build_worker.worker.ServerContext
Was class ServerContext(NamedTuple); now class ServerContext. pypi.org - Signature changed
mypy.build_worker.worker.ServerContext.disable_error_code
Was disable_error_code: list[str]; now disable_error_code: Final. pypi.org - Signature changed
mypy.build_worker.worker.ServerContext.enable_error_code
Was enable_error_code: list[str]; now enable_error_code: Final. pypi.org
And 102 more in this version. Sign up to see every change
mypy 1.20.2 breaking changes
- Signature changed
mypy.build.create_metastore
Was def create_metastore(options: Options) -> MetadataStore; now def create_metastore(options: Options, parallel_worker: bool) -> MetadataStore. pypi.org - Signature changed
mypy.build.SqliteMetadataStore.__init__
Was def __init__(self, cache_dir_prefix: str) -> None; now def __init__(self, cache_dir_prefix: str, set_journal_mode: bool = False) -> None. pypi.org - Signature changed
mypy.build.TypeChecker.refine_parent_types
Was def refine_parent_types(self, expr: Expression, expr_type: Type) -> Mapping[Expression, Type]; now def refine_parent_types(self, expr: Expression, expr_type: Type) -> TypeMap. pypi.org - Signature changed
mypy.main.run_build
Was def run_build(sources: list[BuildSource], options: Options, fscache: FileSystemCache, t0: float, stdout: TextIO, stderr: TextIO) -> tuple[build.BuildResult | None, list[str], bool]; now def run_build(sources: list[BuildSource]... pypi.org - Signature changed
mypy.metastore.connect_db
Was def connect_db(db_file: str) -> sqlite3.Connection; now def connect_db(db_file: str, set_journal_mode: bool) -> sqlite3.Connection. pypi.org
mypy 1.20.1 breaking changes
- Signature changed
mypy.build.create_metastore
Was def create_metastore(options: Options, parallel_worker: bool = False) -> MetadataStore; now def create_metastore(options: Options) -> MetadataStore. pypi.org - Signature changed
mypy.build.SqliteMetadataStore.__init__
Was def __init__(self, cache_dir_prefix: str, sync_off: bool = False) -> None; now def __init__(self, cache_dir_prefix: str) -> None. pypi.org - Signature changed
mypy.metastore.connect_db
Was def connect_db(db_file: str, sync_off: bool = False) -> sqlite3.Connection; now def connect_db(db_file: str) -> sqlite3.Connection. pypi.org
Older versions
15 older versions, each with its first changes. Sign up to see every change
Show 15 older versions
mypy 1.20.0 breaking changes
- Signature changed
mypy.__main__.process_options
Was def process_options(args: list[str], stdout: TextIO | None = None, stderr: TextIO | None = None, require_targets: bool = True, server_options: bool = False, fscache: FileSystemCache | None = None, program: str = 'mypy', header: str =... pypi.org - Signature changed
mypy.applytype.CallableType.copy_modified
Was def copy_modified(self: CT, arg_types: Bogus[Sequence[Type]] = _dummy, arg_kinds: Bogus[list[ArgKind]] = _dummy, arg_names: Bogus[Sequence[str | None]] = _dummy, ret_type: Bogus[Type] = _dummy, fallback: Bogus[Instance] = _dummy, name... pypi.org
And 113 more in this version.
mypy 1.19.1 breaking changes
- Signature changed
mypy.build.CacheMeta.__init__
Was def __init__(self, *, id: str, path: str, mtime: int, size: int, hash: str, dependencies: list[str], data_mtime: int, data_file: str, suppressed: list[str], options: dict[str, object], dep_prios: list[int], dep_lines: list[int]... pypi.org - Signature changed
mypy.build.Errors.file_messages
Was def file_messages(self, path: str, formatter: ErrorFormatter | None = None) -> list[str]; now def file_messages(self, path: str) -> list[ErrorTuple]. pypi.org
And 3 more in this version.
mypy 1.19.0 breaking changes
- Signature changed
mypy.applytype.AnyType.read
Was @classmethod def read(cls, data: Buffer) -> AnyType; now @classmethod def read(cls, data: ReadBuffer) -> AnyType. pypi.org - Signature changed
mypy.applytype.CallableType.read
Was @classmethod def read(cls, data: Buffer) -> CallableType; now @classmethod def read(cls, data: ReadBuffer) -> CallableType. pypi.org
And 259 more in this version.
mypy 1.18.1 breaking changes
- Signature changed
mypy.applytype.CallableType.__init__
Was def __init__(self, arg_types: Sequence[Type], arg_kinds: list[ArgKind], arg_names: Sequence[str | None], ret_type: Type, fallback: Instance, name: str | None = None, definition: SymbolNode | None = None, variables... pypi.org - Signature changed
mypy.applytype.CallableType.copy_modified
Was def copy_modified(self: CT, arg_types: Bogus[Sequence[Type]] = _dummy, arg_kinds: Bogus[list[ArgKind]] = _dummy, arg_names: Bogus[Sequence[str | None]] = _dummy, ret_type: Bogus[Type] = _dummy, fallback: Bogus[Instance] = _dummy, name... pypi.org
And 102 more in this version.
mypy 1.0.0 breaking changes
- Removed
mypy.applytype.ARG_POS
mypy.applytype.ARG_POS was removed in mypy 1.0.0 pypi.org - Removed
mypy.applytype.Context.get_column
Context.get_column was removed in mypy 1.0.0 pypi.org
And 315 more in this version.
mypy 0.991 breaking changes
- Signature changed
mypy.build.BuildSource.__init__
Was def __init__(self, path: str | None, module: str | None, text: str | None = None, base_dir: str | None = None) -> None; now def __init__(self, path: str | None, module: str | None, text: str | None = None, base_dir: str | None = None... pypi.org - Signature changed
mypy.dmypy_server.FineGrainedBuildManager.update
Was def update(self, changed_modules: list[tuple[str, str]], removed_modules: list[tuple[str, str]]) -> list[str]; now def update(self, changed_modules: list[tuple[str, str]], removed_modules: list[tuple[str, str]], followed: bool = False)... pypi.org
And 6 more in this version.
mypy 0.990 breaking changes
- Removed
mypy.__main__.FancyFormatter.show_error_codes
FancyFormatter.show_error_codes was removed in mypy 0.990 pypi.org - Removed
mypy.build.Errors.show_error_codes
Errors.show_error_codes was removed in mypy 0.990 pypi.org
And 132 more in this version.
mypy 0.982 breaking changes
- Renamed
mypy.checker.CollectArgTypes
Use mypy.checker.CollectArgTypeVarTypes instead. pypi.org - Renamed
mypy.checker.is_overlapping_types_no_promote
Use mypy.checker.is_overlapping_types_no_promote_no_uninhabited instead. pypi.org
And 40 more in this version.
mypy 0.981 breaking changes
- Removed
mypy.applytype.get_proper_types
mypy.applytype.get_proper_types was removed in mypy 0.981 pypi.org - Removed
mypy.applytype.ProperType
mypy.applytype.ProperType was removed in mypy 0.981 pypi.org
And 146 more in this version.
mypy 0.971 breaking changes
- Removed
mypy.main.get_site_packages_dirs
mypy.main.get_site_packages_dirs was removed in mypy 0.971 pypi.org - Removed
mypy.modulefinder.expand_site_packages
mypy.modulefinder.expand_site_packages was removed in mypy 0.971 pypi.org
And 113 more in this version.
mypy 0.960 breaking changes
- Removed
mypy.build.Errors.copy
Errors.copy was removed in mypy 0.960 pypi.org - Removed
mypy.build.Errors.is_real_errors
Errors.is_real_errors was removed in mypy 0.960 pypi.org
And 117 more in this version.
mypy 0.950 breaking changes
- Removed
mypy.argmap.Instance.erased
Instance.erased was removed in mypy 0.950 pypi.org - Removed
mypy.semanal_main.strict_optional_set
mypy.semanal_main.strict_optional_set was removed in mypy 0.950 pypi.org
And 56 more in this version.
mypy 0.942 breaking changes
- Signature changed
mypy.plugins.attrs.add_attribute_to_class
Was def add_attribute_to_class(api: SemanticAnalyzerPluginInterface, cls: ClassDef, name: str, typ: Type, final: bool = False, no_serialize: bool = False) -> None; now def add_attribute_to_class(api: SemanticAnalyzerPluginInterface, cls... pypi.org - Signature changed
mypy.plugins.common.add_attribute_to_class
Was def add_attribute_to_class(api: SemanticAnalyzerPluginInterface, cls: ClassDef, name: str, typ: Type, final: bool = False, no_serialize: bool = False) -> None; now def add_attribute_to_class(api: SemanticAnalyzerPluginInterface, cls... pypi.org
And 1 more in this version.
mypy 0.940 breaking changes
- Removed
mypy.build.SemanticAnalyzer.check_no_global
SemanticAnalyzer.check_no_global was removed in mypy 0.940 pypi.org - Removed
mypy.build.SemanticAnalyzer.enum_has_final_values
SemanticAnalyzer.enum_has_final_values was removed in mypy 0.940 pypi.org
And 87 more in this version.
mypy 0.931 breaking changes
- Removed
mypy.plugins.default.detach_callable
mypy.plugins.default.detach_callable was removed in mypy 0.931 pypi.org - Removed
mypy.semanal.TypeAnalyser.allow_new_syntax
TypeAnalyser.allow_new_syntax was removed in mypy 0.931 pypi.org
And 4 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.