Skip to content

Bump mypy from 1.19.1 to 1.20.2#12411

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/mypy-1.20.2
Open

Bump mypy from 1.19.1 to 1.20.2#12411
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/mypy-1.20.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 22, 2026

Bumps mypy from 1.19.1 to 1.20.2.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next Release

Enabling --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

Enabling --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

Drop Support for Targeting Python 3.9

Mypy no longer supports type checking code with --python-version 3.9. Use --python-version 3.10 or newer.

Contributed by Shantanu, Marc Mueller in PR 21243

Remove special casing of legacy bundled stubs

Mypy used to bundle stubs for a few packages in versions 0.812 and earlier. To navigate the transition, mypy used to report missing types for these packages even if --ignore-missing-imports was set. Mypy now consistently respects --ignore-missing-imports for all packages.

Contributed by Shantanu in PR 18372

Prevent assignment to None for non-Optional class variables with type comments

Mypy used to allow assignment to None for class variables when using type comments. This was a common idiom in Python 3.5 and earlier, prior to the introduction of variable annotations. However, this was a soundness hole and has now been removed.

Contributed by Shantanu in PR 20054

Mypy 1.20

We’ve just uploaded mypy 1.20.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

... (truncated)

Commits

Dependabot compatibility score

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 <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mypy](https://github.com/python/mypy) from 1.19.1 to 1.20.2.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.19.1...v1.20.2)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.20.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Apr 22, 2026
@dependabot dependabot Bot requested review from asvetlov and webknjaz as code owners April 22, 2026 10:44
@github-actions github-actions Bot enabled auto-merge (squash) April 22, 2026 10:45
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.92%. Comparing base (b0601d6) to head (2899776).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12411   +/-   ##
=======================================
  Coverage   98.92%   98.92%           
=======================================
  Files         134      134           
  Lines       46741    46741           
  Branches     2429     2429           
=======================================
  Hits        46239    46239           
  Misses        373      373           
  Partials      129      129           
Flag Coverage Δ
CI-GHA 98.98% <ø> (ø)
OS-Linux 98.72% <ø> (-0.01%) ⬇️
OS-Windows 96.98% <ø> (ø)
OS-macOS 97.89% <ø> (-0.01%) ⬇️
Py-3.10.11 97.39% <ø> (-0.01%) ⬇️
Py-3.10.20 97.86% <ø> (+<0.01%) ⬆️
Py-3.11.15 98.11% <ø> (-0.01%) ⬇️
Py-3.11.9 97.65% <ø> (-0.01%) ⬇️
Py-3.12.10 97.73% <ø> (ø)
Py-3.12.13 98.20% <ø> (-0.01%) ⬇️
Py-3.13.13 98.45% <ø> (+<0.01%) ⬆️
Py-3.14.4 98.50% <ø> (-0.01%) ⬇️
Py-3.14.4t 97.51% <ø> (ø)
Py-pypy3.11.15-7.3.21 97.35% <ø> (ø)
VM-macos 97.89% <ø> (-0.01%) ⬇️
VM-ubuntu 98.72% <ø> (-0.01%) ⬇️
VM-windows 96.98% <ø> (ø)
cython-coverage 38.08% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 22, 2026

Merging this PR will degrade performance by 11.2%

❌ 1 regressed benchmark
✅ 66 untouched benchmarks
⏩ 4 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
test_one_hundred_get_requests_iter_chunks_on_10mb_chunked_payload[pyloop] 1.1 s 1.3 s -11.2%

Comparing dependabot/pip/mypy-1.20.2 (2899776) with master (b0601d6)

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants