Skip to content

Bump mypy from 1.19.1 to 1.20.0 - #483

Merged
docktermj merged 1 commit into
mainfrom
dependabot/pip/mypy-1.20.0
Apr 22, 2026
Merged

Bump mypy from 1.19.1 to 1.20.0#483
docktermj merged 1 commit into
mainfrom
dependabot/pip/mypy-1.20.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps mypy from 1.19.1 to 1.20.0.

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
  • 770d3ca Remove +dev from version
  • 4738ffa Changelog updates for 1.20 (#21109)
  • b4f07a7 Use 'native-parser' instead of 'native-parse' for optional dependency (#21115)
  • 7bec7b7 [mypyc] Document librt and librt.base64 (#21114)
  • c482596 --allow-redefinition-new is no longer experimental (#21110)
  • c916ca3 sdist: include misc/{diff-cache,apply-cache-diff}.py for `mypy/test/test_di...
  • b137e4e [mypyc] Speed up native-to-native imports within the same group (#21101)
  • 978b711 [mypyc] Fix range loop variable off-by-one after loop exit (#21098)
  • 67ada30 [stubtest] Check runtime availability of private types not marked `@type_chec...
  • bdef6ef librt cache tests: build respecting MYPY_TEST_PREFIX (#21097)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Python programming language labels Apr 22, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner April 22, 2026 01:43
@dependabot dependabot Bot added the python Python programming language label Apr 22, 2026
@github-actions

Copy link
Copy Markdown

🤖 Claude Code Review

Code Review

PR Summary: Bump mypy from 1.19.1 to 1.20.0 in pyproject.toml


Code Quality

  • Style guide: Single-line change in pyproject.toml — no style concerns.
  • No commented-out code: N/A
  • Meaningful variable names: N/A
  • DRY principle: N/A
  • Defects: No logic, security, or runtime issues. This is a minor version bump for a lint-only dev dependency (mypy is in the lint extras group, not dependencies).
  • CLAUDE.md: No concerns — the project config is general and appropriate.

Testing

  • ✅ No new functions or endpoints introduced; no test changes required.

Documentation

  • README/API docs: No changes needed for a dev dependency bump.
  • CHANGELOG.md: Dependency bumps of this nature (automated Dependabot-style) typically don't require a changelog entry in this project's pattern.
  • Markdown formatting: N/A

Security

  • No hardcoded credentials: N/A
  • No license files (.lic): N/A
  • No sensitive data: N/A

Verdict: APPROVE

This is a straightforward automated dependency bump for a development-only linting tool. No concerns.

Automated code review analyzing defects and coding standards

@github-actions

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/senzing
  szengineflags.py
  szerror.py
Project Total  

This report was generated by python-coverage-comment-action

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

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.20.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/mypy-1.20.0 branch from 8955db9 to f2bc9b2 Compare April 22, 2026 01:55
@github-actions

Copy link
Copy Markdown

🤖 Claude Code Review

Code Review

Change: Bump mypy from 1.19.1 to 1.20.0 in pyproject.toml


Code Quality

✅ Minimal, focused dependency version bump — no style issues
✅ No commented-out code
✅ DRY principle not applicable
✅ No defects — this is a straightforward version pin update

Testing

✅ No new functions requiring unit/integration tests
✅ Existing test suite (via make lint) would catch any mypy regressions

Documentation

✅ No README/API doc changes needed for a dev-dependency bump
✅ CHANGELOG.md — not present in diff, but version bumps of dev linting tools are typically tracked via the commit/PR itself; this is acceptable for a dependency-only change

Security

✅ No hardcoded credentials
✅ No sensitive data
✅ No license files (.lic) present


Summary: Clean, routine dependency bump. No issues found. ✅

Automated code review analyzing defects and coding standards

@docktermj
docktermj merged commit dc842c1 into main Apr 22, 2026
79 checks passed
@docktermj
docktermj deleted the dependabot/pip/mypy-1.20.0 branch April 22, 2026 12:51
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 Python programming language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants