-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update dependency mypy to v1.18.2 #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/mypy-1.x-lockfile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
4c04998
to
f433359
Compare
f433359
to
5e7a5e4
Compare
5e7a5e4
to
054081d
Compare
054081d
to
5ecdee3
Compare
5ecdee3
to
587d956
Compare
587d956
to
3c772c5
Compare
3c772c5
to
4b45a91
Compare
4b45a91
to
07924e3
Compare
07924e3
to
9dca9d5
Compare
9dca9d5
to
3a8a5e3
Compare
3a8a5e3
to
fc55b2e
Compare
fc55b2e
to
92d990f
Compare
92d990f
to
d12baf7
Compare
d12baf7
to
17b3d16
Compare
17b3d16
to
c0b7049
Compare
c0b7049
to
143d2a3
Compare
143d2a3
to
7a282a4
Compare
7a282a4
to
b73408b
Compare
b73408b
to
354f84f
Compare
354f84f
to
6767c70
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
1.6.1
->1.18.2
Release Notes
python/mypy (mypy)
v1.18.2
Compare Source
object.__init__
(Stephen Morton, PR 19733)v1.18.1
Compare Source
We’ve just uploaded mypy 1.18.1 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:
You can read the full documentation for this release on Read the Docs.
Mypy Performance Improvements
Mypy 1.18.1 includes numerous performance improvements, resulting in about 40% speedup
compared to 1.17 when type checking mypy itself. In extreme cases, the improvement
can be 10x or higher. The list below is an overview of the various mypy optimizations.
Many mypyc improvements (discussed in a separate section below) also improve performance.
Type caching optimizations have a small risk of causing regressions. When
reporting issues with unexpected inferred types, please also check if
--disable-expression-cache
will work around the issue, as it turns off some ofthese optimizations.
Fixed‑Format Cache (Experimental)
Mypy now supports a new cache format used for faster incremental builds. It makes
incremental builds up to twice as fast. The feature is experimental and
currently only supported when using a compiled version of mypy. Use
--fixed-format-cache
to enable the new format, or
fixed_format_cache = True
in a configuration file.We plan to enable this by default in a future mypy release, and we'll eventually
deprecate and remove support for the original JSON-based format.
Unlike the JSON-based cache format, the new binary format is currently
not easy to parse and inspect by mypy users. We are planning to provide a tool to
convert fixed-format cache files to JSON, but details of the output JSON may be
different from the current JSON format. If you rely on being able to inspect
mypy cache files, we recommend creating a GitHub issue and explaining your use
case, so that we can more likely provide support for it. (Using
MypyFile.read(binary_data)
to inspect cache data may be sufficient to supportsome use cases.)
This feature was contributed by Ivan Levkivskyi (PR 19668, 19735, 19750, 19681, 19752, 19815).
Flexible Variable Definitions: Update
Mypy 1.16.0 introduced
--allow-redefinition-new
, which allows redefining variableswith different types, and inferring union types for variables from multiple assignments.
The feature is now documented in the
--help
output, but the feature is still experimental.We are planning to enable this by default in mypy 2.0, and we will also deprecate the
older
--allow-redefinition
flag. Since the new behavior differs significantly fromthe older flag, we encourage users of
--allow-redefinition
to experiment with--allow-redefinition-new
and create a GitHub issue if the new functionality doesn'tsupport some important use cases.
This feature was contributed by Jukka Lehtosalo.
Inferred Type for Bare ClassVar
A ClassVar without an explicit type annotation now causes the type of the variable
to be inferred from the initializer:
This feature was contributed by Ivan Levkivskyi (PR 19573).
Disjoint Base Classes (@disjoint_base, PEP 800)
Mypy now understands disjoint bases (PEP 800): it recognizes the
@disjoint_base
decorator, and rejects class definitions that combine mutually incompatible base classes,
and takes advantage of the fact that such classes cannot exist in reachability and
narrowing logic.
This class definition will now generate an error:
v1.17.1
Compare Source
None
as constraints bottom if no bottoms were provided (Stanislav Terliakov, PR 19485)hasattr
" in dmypy (Stanislav Terliakov, PR 19428)v1.17.0
Compare Source
v1.16.1
Compare Source
v1.16.0
Compare Source
v1.15.0
Compare Source
v1.14.1
Compare Source
v1.14.0
Compare Source
v1.13.0
Compare Source
v1.12.1
Compare Source
os.path
stubs affecting use ofos.PathLike[Any]
(Shantanu, PR 17995)v1.12.0
Compare Source
v1.11.2
Compare Source
TypedDict
item types before storing (Ivan Levkivskyi, PR 17640)v1.11.1
Compare Source
RawExpressionType.accept
crash with--cache-fine-grained
(Anders Kaseorg, PR 17588)typing.TypeAliasType
being undefined on python < 3.12 (Nikita Sobolev, PR 17558)types.GenericAlias
lookup crash (Shantanu, PR 17543)v1.11.0
Compare Source
v1.10.1
Compare Source
v1.10.0
Compare Source
v1.9.0
Compare Source
v1.8.0
Compare Source
v1.7.1
Compare Source
v1.7.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.