Fix crash when showing partially analyzed type in error message (Ivan Levkivskyi, PR 17961)
Fix iteration over union (when self type is involved) (Shantanu, PR 17976)
Fix type object with type var default in union context (Jukka Lehtosalo, PR 17991)
Revert change to os.path stubs affecting use of os.PathLike[Any] (Shantanu, PR 17995)
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
Ali Hamdan
Anders Kaseorg
Bénédikt Tran
Brian Schubert
bzoracler
Chelsea Durazo
Danny Yang
Edgar Ramírez Mondragón
Eric Mark Martin
InSync
Ivan Levkivskyi
Jordandev678
Katrina Connors
Kirill Podoprigora
Marc Mueller
Max Muoto
Max Murin
Michael Carlstrom
Michael I Chen
Pradyun Gedam
quinn-sasha
Raphael Krupinski
Sebastian Rittau
Shantanu
sobolevn
Soubhik Kumar Mitra
Stanislav Terliakov
wyattscarpenter
I’d also like to thank my employer, Dropbox, for supporting mypy development.
Mypy 1.11
We’ve just uploaded mypy 1.11 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.
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
The pytest rules PT001 and PT023 now default to omitting the decorator parentheses when there are no arguments
(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
The useless-try-except rule (in our tryceratops category) has been recoded from TRY302 to
TRY203 (#13502). This ensures Ruff's code is consistent with
the same rule in the tryceratops linter.
[flake8-simplify] Stabilize preview behavior for SIM115 so that the rule can detect files
being opened from a wider range of standard-library functions (#12959).
CLI
Add explanation of fixable in --statistics command (#13774)
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
The pytest rules PT001 and PT023 now default to omitting the decorator parentheses when there are no arguments
(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
The useless-try-except rule (in our tryceratops category) has been recoded from TRY302 to
TRY203 (#13502). This ensures Ruff's code is consistent with
the same rule in the tryceratops linter.
[flake8-simplify] Stabilize preview behavior for SIM115 so that the rule can detect files
being opened from a wider range of standard-library functions (#12959).
CLI
Add explanation of fixable in --statistics command (#13774)
🚀 charset-normalizer is raising awareness around HTTP/2, and HTTP/3!
Did you know that Internet Explorer 11 shipped with an optional HTTP/2 support back in 2013? also libcurl did ship it in 2014[...]
All of this while our community is still struggling to make a firm advancement in HTTP clients. Now, many of you use Requests
as the defacto http client, now, and for many years now, Requests has been frozen. Being left in a vegetative state and not evolving,
this blocked millions of developers from using more advanced features.
We promptly invite Python developers to look at the drop-in replacement for Requests, namely Niquests.
It leverage charset-normalizer in a better way! Check it out, you will be positively surprised! Don't wait another decade.
We are thankful to @microsoft and involved parties for funding our work through the Microsoft FOSS Fund program.
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the features-and-bugs group with 7 updates in the / directory:
1.11.2
1.12.1
4.0.0
4.0.1
0.6.9
0.7.0
3.3.2
3.4.0
0.3.8
0.3.9
0.10.0
0.11.0
20.26.6
20.27.0
Updates
mypy
from 1.11.2 to 1.12.1Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
050d12f
Bump version to 1.12.1346e370
[1.12 backport] revert os.path change (#17995)71e1f05
Fix type object with type var default in union context (#17991)34d8603
Fix iteration over union (when self type is involved) (#17976)2485bed
Use kw-only args for member access booleans (#17975)a5e9b0b
Fix crash when showing partially analyzed type in error message (#17961)4775da1
Bump version to 1.12.1+devf2a39b1
Update version to 1.12.0b4ec37a
Add one more 1.12 changelog item (#17936)cc1c679
Better handling of generic functions in partial plugin (#17925)Updates
pre-commit
from 4.0.0 to 4.0.1Release notes
Sourced from pre-commit's releases.
Changelog
Sourced from pre-commit's changelog.
Commits
cc4a522
v4.0.1772d7d4
Merge pull request #3324 from pre-commit/migrate-config-purelib222c62b
fix migrate-config for purelib yaml3d5548b
Merge pull request #3323 from pre-commit/pre-commit-ci-update-config4235a87
[pre-commit.ci] pre-commit autoupdateUpdates
ruff
from 0.6.9 to 0.7.0Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
Commits
5e6de4e
Changelog for Ruff v0.7 (#13794)70e5c4a
RecodeTRY302
toTRY203
(#13502)9218d6b
Removeallow-unused-imports
setting from the common lint options (#13677)1b79ae9
[ruff-0.7] Stabilise the expansion ofopen-file-with-context-handler
to wor...2b87587
[flake8-pytest-style
] Fix defaults whenlint.flake8-pytest-style
config s...d1e15f6
Remove tab-size setting (#12835)89a8215
Remove error messages for removed CLI aliases (#12833)202c6a6
Removeoutput-format=text
setting (#12836)5c3c0c4
[red-knot] Inference for comparison of union types (#13781)6b7a738
Add explanation of fixable in--statistics
command (#13774)Updates
charset-normalizer
from 3.3.2 to 3.4.0Release notes
Sourced from charset-normalizer's releases.
Changelog
Sourced from charset-normalizer's changelog.
Commits
f3118e3
:wrench: change download/upload artifact version to last working version33e67e8
:wrench: set compile-generator in generator_generic_slsa3 action73dd24c
:wrench: add explicit build deps to setuptools78f1e9b
:wrench: attempt to fix cd.yml *356ae702
:wrench: attempt to fix cd.yml *29720055
:wrench: attempt to fix cd.yml (macos part)1e10d06
Update CHANGELOG.md36c103a
:bookmark: Release 3.4.0 (#545)7658dfc
:arrow_up: Bump github/codeql-action from 3.26.11 to 3.26.12 (#544)ca2535d
:arrow_up: Bump github/codeql-action from 3.26.9 to 3.26.11 (#542)Updates
distlib
from 0.3.8 to 0.3.9Changelog
Sourced from distlib's changelog.
Commits
fab584e
Changes for 0.3.9.148fa95
Remove duplicated newline in shebang of windows launcher (#221)d1f40d6
Fix whitespace at end of file.2c4d2fa
Add support for wheel compatibility with the limited API. (#228)fac84c7
Do not use the absolute path to cache wheel extensions. (#226)6fbadf1
Add wheel with a C extension to test mounting (#229)a16423f
Add handling for cross-compilation environments. (#231)cbd4ae1
Upgrade codecov workflow to v4 (#232)5235013
Ignore .vscode project files. (#223)888c48b
Preload script wrappers at import time (#215)Updates
stdlib-list
from 0.10.0 to 0.11.0Release notes
Sourced from stdlib-list's releases.
Commits
8bca33f
bump version ranges to 3.13 (#133)17054da
[BOT] update list for 3.13 (#132)d82ebd7
drop 3.7 and 3.8, prep for 3.13 (#131)66646fb
[BOT] update list for 3.12 (#129)6dba5d1
Bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 (#128)1fb3dfa
Merge pull request #127 from pypi/dependabot/github_actions/pypa/gh-action-py...72f5abd
Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2cd35760
Merge pull request #126 from pypi/dependabot/github_actions/pypa/gh-action-py...b7b34b2
Merge branch 'main' into dependabot/github_actions/pypa/gh-action-pypi-publis...bd349e2
Bump peter-evans/create-pull-request from 6 to 7 (#125)Updates
virtualenv
from 20.26.6 to 20.27.0Release notes
Sourced from virtualenv's releases.
Changelog
Sourced from virtualenv's changelog.
Commits
de4465f
release 20.27.06f16059
Skip $PATH entries we cannot check rather than dying with PermissionError (#2...f73a2f3
Fix broken Windows zipapp and drop 3.7 support (#2783)228b615
[pre-commit.ci] pre-commit autoupdate (#2781)b56d092
[pre-commit.ci] pre-commit autoupdate (#2779)a4dff77
Bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 (#2777)da72caa
[pre-commit.ci] pre-commit autoupdate (#2775)349eddc
docs: fix the documentation typo on Extend Functionality page. (#2773)fe8ca14
release 20.26.6 (#2772)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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show