Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 28, 2025

Bumps mypy from 1.18.2 to 1.19.0.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next Release

Drop Support for Python 3.9

Mypy no longer supports running with Python 3.9, which has reached end-of-life. When running mypy with Python 3.10+, it is still possible to type check code that needs to support Python 3.9 with the --python-version 3.9 argument. Support for this will be dropped in the first half of 2026!

Contributed by Marc Mueller (PR 20156).

Mypy 1.19

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

You can read the full documentation for this release on Read the Docs.

Python 3.9 Support Ending Soon

This is the last mypy feature release that supports Python 3.9, which reached end of life in October 2025.

Performance Improvements

  • Switch to a more dynamic SCC processing logic (Ivan Levkivskyi, PR 20053)
  • Speed up type aliases (Ivan Levkivskyi, PR 19810)

Fixed‑Format Cache Improvements

Mypy uses a cache by default to speed up incremental runs by reusing partial results from earlier runs. Mypy 1.18 added a new binary fixed-format cache representation as an experimental feature. The feature is no longer experimental, and we are planning to enable it by default in a future mypy release (possibly 1.20), since it's faster and uses less space than the original, JSON-based cache format. Use --fixed-format-cache to enable the fixed-format cache.

Mypy now has an extra dependency on the librt PyPI package, as it's needed for cache serialization and deserialization.

Mypy ships with a tool to convert fixed-format cache files to the old JSON format. Example of how to use this:

$ python -m mypy.exportjson .mypy_cache/.../my_module.data.ff

... (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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Resolves #20304
Resolves #20296
Resolves #20302
Resolves #20291
Resolves #20271
Resolves #20263
Resolves #20258
Resolves #20202

Bumps [mypy](https://github.com/python/mypy) from 1.18.2 to 1.19.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.18.2...v1.19.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 28, 2025
@dependabot dependabot bot requested a review from a team as a code owner November 28, 2025 17:13
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 28, 2025
@github-actions
Copy link

🤖 Claude Code Review

Code Review Analysis

Pull Request Summary

This PR updates the mypy dependency from version 1.18.2 to 1.19.0 in the lint dependencies section of pyproject.toml.


Checklist Review

Code Quality

Code follows style guide

  • The change follows TOML formatting standards
  • Consistent with existing dependency declarations in the file
  • Location: pyproject.toml:52

No commented-out code

  • No commented code present in the diff

Meaningful variable names

  • N/A - This is a dependency version update, not code logic

DRY principle followed

  • N/A - Single dependency update

Identify Defects

  • No bugs, logic errors, or security vulnerabilities introduced
  • This is a minor version bump for a development dependency (type checker)
  • mypy 1.19.0 is a legitimate release (released ~March 2024)
  • The update is in the lint extras section, so it only affects development/CI environments

Testing

⚠️ Unit tests for new functions

  • N/A - No new functions added
  • However, recommend verifying that mypy 1.19.0 doesn't introduce new type checking errors in CI

⚠️ Integration tests for new endpoints

  • N/A - No new endpoints

⚠️ Edge cases covered

  • N/A - Dependency update

⚠️ Test coverage > 80%

  • Cannot determine from diff alone
  • Dependency update shouldn't affect coverage

Documentation

Readme updated if needed

  • No README update needed - dependency version bumps typically don't require README changes unless there are breaking changes or new usage patterns

⚠️ API docs updated

  • N/A - Development dependency update

Inline comments for complex logic

  • N/A - No code logic changes

⚠️ CHANGELOG.md updated

  • Not visible in diff
  • Recommendation: Consider adding an entry to CHANGELOG.md noting the mypy version bump, especially if it's part of keeping dependencies current or if it relates to fixing type checking issues

Security

No hardcoded credentials

  • No credentials present

Input validation implemented

  • N/A - Dependency update

Proper error handling

  • N/A - Dependency update

No sensitive data in logs

  • N/A - No logging changes

No license files (.lic) or AQAAAD strings

  • No license files or suspicious strings in the diff

Overall Assessment

APPROVED ✅ with minor recommendations

Summary

This is a straightforward dependency update that poses minimal risk. The change updates mypy from 1.18.2 to 1.19.0, which is a minor version bump of a development-only type checking tool.

Recommendations

  1. Verify CI passes: Ensure that mypy 1.19.0 doesn't introduce new type checking failures in your CI pipeline
  2. Consider CHANGELOG: If your project maintains a CHANGELOG, consider documenting this dependency update
  3. Review release notes: Check mypy 1.19.0 release notes for any breaking changes or new checks that might affect your codebase

Risk Level

LOW - This is a development dependency that only affects linting/type checking during development and CI. It does not impact runtime behavior or production code.

Automated code review analyzing defects and coding standards

@docktermj docktermj merged commit aa57ed8 into main Dec 1, 2025
63 of 91 checks passed
@docktermj docktermj deleted the dependabot/pip/mypy-1.19.0 branch December 1, 2025 14:04
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.

2 participants