Skip to content

Bump mypy from 1.20.1 to 1.20.2#1391

Merged
JSv4 merged 1 commit intomainfrom
dependabot/pip/mypy-1.20.2
Apr 28, 2026
Merged

Bump mypy from 1.20.1 to 1.20.2#1391
JSv4 merged 1 commit intomainfrom
dependabot/pip/mypy-1.20.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Bumps mypy from 1.20.1 to 1.20.2.

Changelog

Sourced from mypy's changelog.

Mypy 1.20.1

  • Always disable sync in SQLite cache (Ivan Levkivskyi, PR 21184)
  • Temporarily skip few base64 tests (Ivan Levkivskyi, PR 21193)
  • Revert dict.__or__ typeshed change (Ivan Levkivskyi, PR 21186)
  • Fix narrowing for match case with variadic tuples (Shantanu, PR 21192)
  • Avoid narrowing type[T] in type calls (Shantanu, PR 21174)
  • Fix regression for catching empty tuple in except (Shantanu, PR 21153)
  • Fix reachability for frozenset and dict view narrowing (Shantanu, PR 21151)
  • Fix narrowing with chained comparison (Shantanu, PR 21150)
  • Avoid narrowing to unreachable at module level (Shantanu, PR 21144)
  • Allow dangerous identity comparisons to Any typed variables (Shantanu, PR 21142)
  • --warn-unused-config should not be a strict flag (Ivan Levkivskyi, PR 21139)

Mypy 1.20.2

  • Use WAL with SQLite cache and fix close (Shantanu, PR 21154)
  • Adjust SQLite journal mode (Ivan Levkivskyi, PR 21217)
  • Correctly aggregate narrowing information on parent expressions (Shantanu, PR 21206)
  • Fix regression related to generic callables (Shantanu, PR 21208)
  • Fix regression by avoiding widening types in some contexts (Shantanu, PR 21242)
  • Fix slicing in non-strict optional mode (Shantanu, PR 21282)
  • mypyc: Fix match statement semantics for "or" pattern (Shantanu, PR 21156)
  • mypyc: Fix issue with module dunder attributes (Piotr Sawicki, PR 21275)
  • Initial support for Python 3.15.0a8 (Marc Mueller, PR 21255)

Acknowledgements

Thanks to all mypy contributors who contributed to this release:

  • A5rocks
  • Aaron Wieczorek
  • Adam Turner
  • Ali Hamdan
  • asce
  • BobTheBuidler
  • Brent Westbrook
  • Brian Schubert
  • bzoracler
  • Chris Burroughs
  • Christoph Tyralla
  • Colin Watson
  • Donghoon Nam
  • E. M. Bray
  • Emma Smith
  • Ethan Sarp
  • George Ogden
  • getzze
  • grayjk
  • Gregor Riepl
  • Ivan Levkivskyi

... (truncated)

Commits

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
mypy [>= 1.17.dev0, < 1.18]

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.20.1 to 1.20.2.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.20.1...v1.20.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 27, 2026
@claude
Copy link
Copy Markdown

claude Bot commented Apr 27, 2026

Code Review: Bump mypy 1.20.1 → 1.20.2

Overview

Routine Dependabot patch bump of mypy (the static type checker) from 1.20.1 to 1.20.2. The single-line change is in requirements/local.txt, meaning this is a dev/local tooling dependency only — it has no impact on production deployments.


Assessment

Risk level: Very Low

This is a patch release containing only bug fixes and no new features or breaking changes.

Fixes included in 1.20.2 (relevant to this project)

Fix Impact
SQLite cache uses WAL mode + proper close Faster, safer mypy incremental checks on developer machines
Fix regression for generic callables Prevents false-positive type errors on generic code
Fix narrowing information aggregation on parent expressions More accurate type narrowing in complex expressions
Fix type widening regression in conditional types Avoids spurious errors in conditional branches
Fix slicing in non-strict optional mode Relevant if the project uses non-strict mypy config
mypyc: Fix or pattern in match statements Only relevant if mypyc compilation is used (not apparent here)
Initial Python 3.15 support Forward compatibility

What to verify

  • The mypy version in requirements/local.txt is the only pin — confirmed by the diff, no divergence with base or production requirements.
  • This is a local-only dependency (not in requirements/base.txt or requirements/production.txt), so there is zero production risk.

Verdict

Approve and merge. This is a safe patch update that fixes type-checker regressions without any API or behavior changes. No new tests are needed — mypy is a dev tool, not application code.

@JSv4 JSv4 merged commit 66490a5 into main Apr 28, 2026
6 checks passed
@JSv4 JSv4 deleted the dependabot/pip/mypy-1.20.2 branch April 28, 2026 03:28
JSv4 added a commit that referenced this pull request Apr 29, 2026
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