dependabot[bot] opened a new pull request, #603:
URL: https://github.com/apache/hudi-rs/pull/603
Bumps [mypy](https://github.com/python/mypy) from 1.20.2 to 2.0.0.
Changelog
Sourced from https://github.com/python/mypy/blob/master/CHANGELOG.md";>mypy's
changelog.
Mypy Release Notes
Next Release
Mypy 2.0
We’ve just uploaded mypy 2.0.0 to the Python Package Index (https://pypi.org/project/mypy/";>PyPI).
Mypy is a static type checker for Python. This release includes new
features, performance
improvements and bug fixes. There are also changes to options and defaults.
You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on http://mypy.readthedocs.io";>Read the Docs.
Enable --local-partial-types by Default
This flag affects the inference of types based on assignments in other
scopes.
For now, explicitly disabling this continues to be supported, but this
support will be removed
in the future as the legacy behaviour is hard to support with other current
and future features
in mypy, like the daemon or the new implementation of flexible
redefinitions.
Contributed by Ivan Levkivskyi, Jukka Lehtosalo, Shantanu in https://redirect.github.com/python/mypy/pull/21163";>PR 21163.
Enable --strict-bytes by Default
Per https://peps.python.org/pep-0688";>PEP 688, mypy no
longer treats bytearray and memoryview
values as assignable to the bytes type.
Contributed by Shantanu in https://redirect.github.com/python/mypy/pull/18371";>PR 18371.
New Behavior for --allow-redefinition
The --allow-redefinition flag now behaves like
--allow-redefinition-new in mypy 1.20
and earlier. The new behavior is generally more flexible. For example, you
can have different
types for a variable in different blocks:
# mypy: allow-redefinition
def foo(cond: bool) -> None:
if cond:
for x in ["a", "b"]:
# Type of "x" is "str" here
...
else:
for x in [1, 2]:
# Type of "x" is "int" here
...
... (truncated)
Commits
https://github.com/python/mypy/commit/7a765008a138ec46c579bfc6ef608860cab36033";>7a76500
Remove +dev from version
https://github.com/python/mypy/commit/5a3ab3b29f03d8baafeced3761e1afc8bd58be79";>5a3ab3b
Changelog for mypy 2.0 (https://redirect.github.com/python/mypy/issues/21422";>#21422)
https://github.com/python/mypy/commit/f9c86e21e88f96806c65790d604bf1264db39434";>f9c86e2
Some changelog updates for 2.0 (https://redirect.github.com/python/mypy/issues/21413";>#21413)
https://github.com/python/mypy/commit/519eaf15e0ceafae30337083577a54c7d3f3b4fe";>519eaf1
Bump librt to 0.10.0 (https://redirect.github.com/python/mypy/issues/21415";>#21415)
https://github.com/python/mypy/commit/158a6207d6e221cc403e1d556097b5abf5157cdd";>158a620
Fix negative narrowing for containers (https://redirect.github.com/python/mypy/issues/21411";>#21411)
https://github.com/python/mypy/commit/e556eb93a3c551a320a536879ce0a1608d14d490";>e556eb9
Try fixing mypy mypyc wheels (https://redirect.github.com/python/mypy/issues/21392";>#21392)
https://github.com/python/mypy/commit/f2c97971f5f4dcd749cf87df1e1308ab5754490a";>f2c9797
Expose --num-workers and --native-parser (https://redirect.github.com/python/mypy/issues/21387";>#21387)
https://github.com/python/mypy/commit/db0cb2f7c68b0f9d43d6ee1ab68117c1550dac39";>db0cb2f
Bump ast-serialize cache version (https://redirect.github.com/python/mypy/issues/21388";>#21388)
https://github.com/python/mypy/commit/1090ca6d476f629c566250a41204450043a47cf5";>1090ca6
Bump ast-serialize version to 0.3.0 only (https://redirect.github.com/python/mypy/issues/21391";>#21391)
https://github.com/python/mypy/commit/714ca9f2ac76e7c6dd56e26fd555f69313ba47ab";>714ca9f
[mypyc] Add note about librt.strings thread safety (https://redirect.github.com/python/mypy/issues/21383";>#21383)
Additional commits viewable in https://github.com/python/mypy/compare/v1.20.2...v2.0.0";>compare
view
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
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 ignore conditions` will show all of
the