← Back to issue list

build(deps): update dependency mypy to v2 (main)

View original Github issue

Metadata

Project
craft-platforms
Number
#222
Type
pull request
State
closed
Author
renovate[bot]
Labels
PR: Dependencies
Created
Updated
Closed

Current evaluation

Closed unmerged because mypy 2 required Python 3.10+, conflicting with Python 3.9 support; merged PR #223 then replaced mypy and pyright with ty in commit 23f2017.

Resolution: closed superseded

Reason: Renovate reported that uv could not resolve mypy 2 while Python 3.9 remained supported, and the maintainer rejected the update. PR #223 superseded it by removing mypy in favor of ty; commit 23f2017 records that change.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [mypy](https://redirect.github.com/python/mypy) ([changelog](https://mypy.readthedocs.io/en/latest/changelog.html)) | `~=1.11` → `~=2.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/mypy/2.0.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/mypy/1.19.1/2.0.0?slim=true) | --- ### Release Notes <details> <summary>python/mypy (mypy)</summary> ### [`v2.0.0`](https://redirect.github.com/python/mypy/compare/v1.20.2...v2.0.0) [Compare Source](https://redirect.github.com/python/mypy/compare/v1.20.2...v2.0.0) ### [`v1.20.2`](https://redirect.github.com/python/mypy/compare/v1.20.1...v1.20.2) [Compare Source](https://redirect.github.com/python/mypy/compare/v1.20.1...v1.20.2) ### [`v1.20.1`](https://redirect.github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1201) [Compare Source](https://redirect.github.com/python/mypy/compare/v1.20.0...v1.20.1) - Always disable sync in SQLite cache (Ivan Levkivskyi, PR [21184](https://redirect.github.com/python/mypy/pull/21184)) - Temporarily skip few base64 tests (Ivan Levkivskyi, PR [21193](https://redirect.github.com/python/mypy/pull/21193)) - Revert `dict.__or__` typeshed change (Ivan Levkivskyi, PR [21186](https://redirect.github.com/python/mypy/pull/21186)) - Fix narrowing for match case with variadic tuples (Shantanu, PR [21192](https://redirect.github.com/python/mypy/pull/21192)) - Avoid narrowing `type[T]` in type calls (Shantanu, PR [21174](https://redirect.github.com/python/mypy/pull/21174)) - Fix regression for catching empty tuple in except (Shantanu, PR [21153](https://redirect.github.com/python/mypy/pull/21153)) - Fix reachability for frozenset and dict view narrowing (Shantanu, PR [21151](https://redirect.github.com/python/mypy/pull/21151)) - Fix narrowing with chained comparison (Shantanu, PR [21150](https://redirect.github.com/python/mypy/pull/21150)) - Avoid narrowing to unreachable at module level (Shantanu, PR [21144](https://redirect.github.com/python/mypy/pull/21144)) - Allow dangerous identity comparisons to `Any` typed variables (Shantanu, PR [21142](https://redirect.github.com/python/mypy/pull/21142)) - `--warn-unused-config` should not be a strict flag (Ivan Levkivskyi, PR [21139](https://redirect.github.com/python/mypy/pull/21139)) ### [`v1.20.0`](https://redirect.github.com/python/mypy/compare/v1.19.1...v1.20.0) [Compare Source](https://redirect.github.com/python/mypy/compare/v1.19.1...v1.20.0) </details> --- ### Configuration 📅 **Schedule**: (in timezone Etc/UTC) - Branch creation - "every weekend" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/canonical/craft-platforms). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJQUjogRGVwZW5kZW5jaWVzIl19-->

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed unmerged because mypy 2 required Python 3.10+, conflicting with Python 3.9 support; merged PR #223 then replaced mypy and pyright with ty in commit 23f2017.
stealth/space-bunny-alpha — closed not a bug Renovate's mypy 2.0 update was closed unmerged because mypy 2.0 requires Python 3.10+, while craft-platforms still supports Python 3.8 and 3.9.
qwen/qwen3.6-35b-a3b — closed stale Closed by maintainer due to `mypy v2` requiring Python 3.10+, conflicting with Python 3.9 support. Maintainer commented 'no <3', and Renovate was set to ignore future 2.x updates.

Update history

Date Change
created

Related work

  • Superseded By: craft-platforms#223 (confidence 99%)

    Merged PR #223 replaced mypy and pyright with the ty type checker.

Related issues

Issue Project State Summary Similarity
#1585 build(deps): update dependency mypy to v2 (main) craft-parts closed Closed unmerged after inactivity; mypy was later dropped in merged PR #1706 (commit 770e2130).
88%
#378 build(deps): update dependency mypy to v2 (main) imagecraft merged Merged the mypy upgrade from ~=1.20.2 to ~=2.3.0 into main via PR #378 (commit 19ebdf6).
86%
#465 build(deps): update dependency mypy to v2.3.0 (main) craft-cli merged Renovate PR merged as commit c8b5b4b, bumping mypy from 2.2.0 to 2.3.0 in main (+49/-49). Mypy was later removed entirely in #479, switching type checking to ty.
86%
#17 build(deps): update dependency mypy to ~=1.17.1 craft-artifacts closed Closed unmerged; PR #36 replaced it by updating mypy to ~=1.18.1 and was merged in commit 09f5fb4.
86%
#239 build(deps): update dependency mypy to v2 (main) craft-archives merged Merged PR #239 updated mypy from ~=1.5 to ~=2.3, including constraint and lockfile changes, in commit cd0759b.
85%
#365 build(deps): update dependency mypy to v2 (main) craft-store merged Merged PR #365 upgraded mypy from ~=1.13 to ~=2.1 and updated related configuration in commit 5d7b688.
85%
#202 build(deps): update dependency mypy to ~=2.3.0 (main) craft-grammar merged Renovate bump of mypy from ~=2.2.0 to ~=2.3.0 was approved with all CI checks green and merged into main as commit 1effa68 (PR #202).
85%
#2689 build(deps): update dependency mypy to v2 (main) - autoclosed charmcraft closed Renovate PR #2689 was autoclosed unmerged after four months without activity; its mypy 2.1 update was not adopted.
84%
#461 build(deps): update dependency mypy to v2.2.0 (main) craft-cli merged Renovate PR updating mypy from 2.1.0 to 2.2.0 was approved with all CI checks green and merged into main via commit 5c694ef (#461).
84%
#533 build(deps): update dependency mypy to v2 (main) starbase merged Renovate PR #533 merged into main, updating mypy from ~=1.20.0 to ~=2.1.0 in pyproject.toml and uv.lock via commit 5641f05.
84%