Skip to content

chore(deps-dev): bump mypy from 1.20.0 to 2.0.0 in /scaleway-async#1758

Merged
yfodil merged 1 commit into
mainfrom
dependabot/pip/scaleway-async/mypy-1.20.2
May 11, 2026
Merged

chore(deps-dev): bump mypy from 1.20.0 to 2.0.0 in /scaleway-async#1758
yfodil merged 1 commit into
mainfrom
dependabot/pip/scaleway-async/mypy-1.20.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 1, 2026

Bumps mypy from 1.20.0 to 2.0.0.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next Release

Mypy 2.0

We’ve just uploaded mypy 2.0.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. 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 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 PR 21163.

Enable --strict-bytes by Default

Per PEP 688, mypy no longer treats bytearray and memoryview values as assignable to the bytes type.

Contributed by Shantanu in 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

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 1, 2026
@dependabot dependabot Bot requested a review from remyleone as a code owner May 1, 2026 16:01
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 1, 2026
@dependabot dependabot Bot changed the title chore(deps-dev): bump mypy from 1.20.0 to 1.20.2 in /scaleway-async chore(deps-dev): bump mypy from 1.20.0 to 2.0.0 in /scaleway-async May 11, 2026
@dependabot dependabot Bot force-pushed the dependabot/pip/scaleway-async/mypy-1.20.2 branch from 453a29f to a838eaa Compare May 11, 2026 08:48
Bumps [mypy](https://github.com/python/mypy) from 1.20.0 to 2.0.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.20.0...v2.0.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.20.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/scaleway-async/mypy-1.20.2 branch from a838eaa to 83e51bf Compare May 11, 2026 12:43
@yfodil yfodil added this pull request to the merge queue May 11, 2026
Merged via the queue into main with commit 79a49ca May 11, 2026
78 checks passed
@yfodil yfodil deleted the dependabot/pip/scaleway-async/mypy-1.20.2 branch May 11, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant