Title: Bump mypy from 2.3.1 to 2.4.0 by dependabot[bot] · Pull Request #500 · python/pyperformance · GitHub
Open Graph Title: Bump mypy from 2.3.1 to 2.4.0 by dependabot[bot] · Pull Request #500 · python/pyperformance
X Title: Bump mypy from 2.3.1 to 2.4.0 by dependabot[bot] · Pull Request #500 · python/pyperformance
Description: Bumps mypy from 2.3.1 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
935ba8a Bump version to 2.4.0
334a678 Add link for PR 22066 in mypy 2.4 changelog (#22082)
fe69660 Finalize mypy 2.4 changelog (#22080)
541fd87 Various mypy 2.4 changelog updates (#22077)
b231182 Update native parser docs (#22078)
04fe42c Initial Changelog for Mypy 2.4 (#22071)
0617494 Quick fix for non UTF-8 encodings with new parser (#22066)
b2f9b60 Bump librt to 0.16.0 (#22067)
9d798dc Sync typeshed (#22054)
0861bb6 Reduce max protocol stack size to 20 (#22053)
Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show
Open Graph Description: Bumps mypy from 2.3.1 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 i...
X Description: Bumps mypy from 2.3.1 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)...
Opengraph URL: https://github.com/python/pyperformance/pull/500
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5670b700-39f7-5e1a-fe99-05f4be3ac29b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9186:FC5BE:31F920A:4266D4C:6B01EC65 |
| html-safe-nonce | 04bb8671ba5a749cee753d569ec577d744e2c861dac5cbb9eed9d854069976cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTg2OkZDNUJFOjMxRjkyMEE6NDI2NkQ0Qzo2QjAxRUM2NSIsInZpc2l0b3JfaWQiOiI3NDU2MDU1OTEzMzIxOTgzMDc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0d419e074638e69fd274b7052bf5ccce73bbdd0e79ea74c69c2e752dc6f9be82 |
| hovercard-subject-tag | pull_request:5104500559 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/pyperformance/pull/500/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps mypy from 2.3.1 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 i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/pyperformance git https://github.com/python/pyperformance.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 65949828 |
| octolytics-dimension-repository_nwo | python/pyperformance |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65949828 |
| octolytics-dimension-repository_network_root_nwo | python/pyperformance |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width