Skip to content

chore(deps): bump mypy from 2.3.0 to 2.4.0 - #1460

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mypy-2.4.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mypy-2.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Bumps mypy from 2.3.0 to 2.4.0.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next Release

Mypy 2.4

We've just uploaded mypy 2.4.0 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Python 3.15 Support

Mypy 2.4 supports running on Python 3.15 and type checking most Python 3.15 features. This includes the new builtin sentinel type for sentinel values (PEP 661), which mypy now supports (see below for details). Lazy imports (PEP 810) and unpacking in comprehensions (PEP 798) are also supported. Closed TypedDicts (PEP 728) have been supported since mypy 2.2, but the extra_items TypedDict argument, also introduced in PEP 728, is still unsupported. Support for extra_items will be added in a future mypy release.

Native Parser Enabled by Default

Mypy now uses the new native parser by default. It's based on the Ruff parser, and it's significantly faster than the legacy parser, which uses the stdlib ast module. The native parser also has other benefits:

  • You can target newer Python versions and use recent Python syntax even when running mypy on an older Python version. For example, you can use --python-version 3.15 when running mypy on Python 3.14.
  • Stub files can use syntax that is newer than the target Python version. For example, stubs can use the PEP 695 generic class syntax (class Box[T]: ...) when running on or targeting Python 3.10.
  • Parallel type checking requires the native parser.

The legacy parser is still available through --no-native-parser, or native_parser = False in the config file (native_parser = false under [tool.mypy] in pyproject.toml). We are planning to remove the legacy parser in early 2027. If you run into a problem with the native parser, please report it on the issue tracker.

Unlike the legacy parser, the native parser doesn't support type comments for variables defined by for and with statements. These type comments are silently ignored, and the types of the variables are

... (truncated)

Commits

@dependabot
dependabot Bot requested a review from dlrsp-dev as a code owner October 6, 2026 20:25
@dependabot dependabot Bot added the 📦 dependencies Update of dependencies label Oct 6, 2026
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch 2 times, most recently from 697e2f3 to 280da35 Compare October 7, 2026 15:03
@dlrsp-actions dlrsp-actions Bot added the needs-human-review Policy gate blocked; human review required label Oct 7, 2026
@dlrsp-actions

dlrsp-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Policy gate blocked this PR: default-fail: matched catch-all policy

@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 280da35 to 426e98e Compare October 8, 2026 15:07
@dlrsp-actions dlrsp-actions Bot removed the needs-human-review Policy gate blocked; human review required label Oct 8, 2026
@dlrsp-actions
dlrsp-actions Bot enabled auto-merge (rebase) October 8, 2026 15:14
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 426e98e to 1e70139 Compare October 8, 2026 15:20
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 1e70139 to 1f94d9c Compare October 8, 2026 15:31
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 1f94d9c to d015c05 Compare October 8, 2026 15:36
@dlrsp-actions dlrsp-actions Bot added the needs-human-review Policy gate blocked; human review required label Oct 8, 2026
@dlrsp-actions

dlrsp-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Policy gate blocked this PR: default-fail: matched catch-all policy

@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from d015c05 to 9a96842 Compare October 9, 2026 14:50
@dlrsp-actions dlrsp-actions Bot removed the needs-human-review Policy gate blocked; human review required label Oct 9, 2026
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 9a96842 to ff5d715 Compare October 9, 2026 14:57
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from ff5d715 to 67c0109 Compare October 10, 2026 14:11
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 67c0109 to 04bbed6 Compare October 10, 2026 14:12
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 04bbed6 to 368d82c Compare October 10, 2026 14:25
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 368d82c to a005c76 Compare October 11, 2026 14:37
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from a005c76 to 70914b0 Compare October 11, 2026 14:40
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from dedcfe0 to eb8916a Compare October 13, 2026 15:32
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from eb8916a to b61a8d1 Compare October 13, 2026 15:34
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch 2 times, most recently from b61a8d1 to 49d1de9 Compare October 14, 2026 13:20
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 49d1de9 to 2654b63 Compare October 14, 2026 13:21
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 2654b63 to 587e9fb Compare October 14, 2026 13:34
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 587e9fb to 03ca47c Compare October 15, 2026 13:04
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 03ca47c to e727f89 Compare October 15, 2026 13:09
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from e727f89 to 4f4aad4 Compare October 15, 2026 13:21
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 4f4aad4 to 661e29b Compare October 16, 2026 12:55
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 661e29b to 2c67f70 Compare October 16, 2026 12:58
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 2c67f70 to 4bb463e Compare October 16, 2026 13:09
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 4bb463e to ec724ba Compare October 17, 2026 11:52
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from ec724ba to 195515e Compare October 17, 2026 11:59
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 195515e to 2ac94fc Compare October 18, 2026 12:22
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 2ac94fc to 0312097 Compare October 18, 2026 12:24
Bumps [mypy](https://github.com/python/mypy) from 2.3.0 to 2.4.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dlrsp-actions
dlrsp-actions Bot force-pushed the dependabot/pip/mypy-2.4.0 branch from 0312097 to 60226f0 Compare October 18, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 dependencies Update of dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant