Skip to content

deps-dev(deps-dev): update mypy requirement from >=1.0 to >=1.19.1#26

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mypy-gte-1.19.1
Open

deps-dev(deps-dev): update mypy requirement from >=1.0 to >=1.19.1#26
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mypy-gte-1.19.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Updates the requirements on mypy to permit the latest version.

Changelog

Sourced from mypy's changelog.

Mypy 1.19.1

  • Fix noncommutative joins with bounded TypeVars (Shantanu, PR 20345)
  • Respect output format for cached runs by serializing raw errors in cache metas (Ivan Levkivskyi, PR 20372)
  • Allow types.NoneType in match cases (A5rocks, PR 20383)
  • Fix mypyc generator regression with empty tuple (BobTheBuidler, PR 20371)
  • Fix crash involving Unpack-ed TypeVarTuple (Shantanu, PR 20323)
  • Fix crash on star import of redefinition (Ivan Levkivskyi, PR 20333)
  • Fix crash on typevar with forward ref used in other module (Ivan Levkivskyi, PR 20334)
  • Fail with an explicit error on PyPy (Ivan Levkivskyi, PR 20389)

Acknowledgements

Thanks to all mypy contributors who contributed to this release:

  • A5rocks
  • BobTheBuidler
  • bzoracler
  • Chainfire
  • Christoph Tyralla
  • David Foster
  • Frank Dana
  • Guo Ci
  • iap
  • Ivan Levkivskyi
  • James Hilton-Balfe
  • jhance
  • Joren Hammudoglu
  • Jukka Lehtosalo
  • KarelKenens
  • Kevin Kannammalil
  • Marc Mueller
  • Michael Carlstrom
  • Michael J. Sullivan
  • Piotr Sawicki
  • Randolf Scholz
  • Shantanu
  • Sigve Sebastian Farstad
  • sobolevn
  • Stanislav Terliakov
  • Stephen Morton
  • Theodore Ando
  • Thiago J. Barbalho
  • wyattscarpenter

I’d also like to thank my employer, Dropbox, for supporting mypy development.

Mypy 1.18

We’ve just uploaded mypy 1.18.1 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance

... (truncated)

Commits

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)

Open with Devin

Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.0.0...v1.19.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.19.1
  dependency-type: direct:development
...

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

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment thread pyproject.toml
"black>=23.0",
"isort>=5.12",
"mypy>=1.0",
"mypy>=1.19.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 mypy >=1.19.1 requires Python >=3.9, breaking dev install on declared-supported Python 3.8

mypy 1.19.1 declares Requires-Python: >=3.9, but this project declares requires-python = ">=3.8" at pyproject.toml:12 and lists Python 3.8 in its classifiers (pyproject.toml:18). A developer running Python 3.8 who runs pip install -e ".[dev]" will fail to install because pip cannot find a mypy version that satisfies both >=1.19.1 and Python 3.8. The mypy tool config also targets python_version = "3.8" (pyproject.toml:102). Either the minimum Python version should be bumped to 3.9+, or the mypy constraint should be relaxed (e.g., >=1.0) to allow older mypy on Python 3.8.

Prompt for agents
The project declares requires-python >= 3.8 (pyproject.toml:12) and lists Python 3.8 in classifiers (pyproject.toml:18), but mypy >= 1.19.1 requires Python >= 3.9. This means pip install -e .[dev] will fail on Python 3.8.

There are two paths to fix this:
1. If Python 3.8 support is still desired: relax the mypy constraint back to something compatible (e.g. mypy>=1.0 which was the previous value), or use an environment marker like mypy>=1.19.1; python_version>='3.9' combined with mypy>=1.0; python_version<'3.9'.
2. If Python 3.8 support can be dropped: bump requires-python to >=3.9, remove the 3.8 classifier, and update the python_version in [tool.mypy] and target-version in [tool.black].

Also note that requirements-dev.txt line 8 still has mypy>=1.0, which is inconsistent with pyproject.toml after this change.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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 related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant