chore(deps): upgrade to mypy 2.x - #45
Merged
Merged
Conversation
mypy 2.0 enables --strict-bytes, --local-partial-types and --allow-redefinition-new by default. Evaluated against the codebase: mypy 2.1.0 reports 0 issues across 50 source files, so the stricter defaults require no code changes. - bump mypy >=1.8.0,<2.0 -> >=2.1.0,<3.0 (lift the intentional <2.0 ceiling) - mypy.ini: drop now-unused [mypy-uvicorn.*] override (uvicorn ships type info; warn_unused_configs flagged it under mypy 2.x) Validated: make typecheck (0 issues), make lint (9/9).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of ISSUE_P (tier 3 of 3). The
<2.0ceiling on mypy was an intentional guard; this PR evaluates lifting it.Evaluation result
mypy 2.0 enables by default:
--strict-bytes,--local-partial-types,--allow-redefinition-new(and drops py3.8 targeting — we target 3.12). Ran mypy 2.1.0 against the codebase:The stricter defaults surface no new errors — no code changes needed.
Change
mypy>=1.8.0,<2.0→>=2.1.0,<3.0(ceiling lifted).mypy.ini: removed the now-unused[mypy-uvicorn.*]override. uvicorn (0.49, bumped in chore(deps): tier-1 routine bumps (non-breaking) #43) ships type information, sowarn_unused_configsflagged the section as dead under mypy 2.x.Validation
make typecheck— 0 issues (50 files), no config warningsmake lint— 9 linters, 0 errors