Bump mypy from 2.1.0 to 2.3.0#49
Conversation
Bumps [mypy](https://github.com/python/mypy) from 2.1.0 to 2.3.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v2.1.0...v2.3.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.3.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe development dependency pin for mypy is updated from version 2.1.0 to 2.3.0 in ChangesDevelopment dependency update
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@requirements-dev.txt`:
- Line 6: Update the mypy revision in the pre-commit configuration to match the
requirements-dev.txt pin at version 2.3.0, ensuring both development dependency
management and pre-commit checks use the same version.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0a444f43-fbee-452f-b753-c9da8ff5f5a4
📒 Files selected for processing (1)
requirements-dev.txt
| responses==0.26.1 | ||
| ruff==0.15.20 | ||
| mypy==2.1.0 | ||
| mypy==2.3.0 |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== requirements-dev.txt ==\n'
nl -ba requirements-dev.txt | sed -n '1,40p'
printf '\n== .pre-commit-config.yaml ==\n'
nl -ba .pre-commit-config.yaml | sed -n '1,120p'Repository: finallyjay/packagist-tracker
Length of output: 234
🏁 Script executed:
#!/bin/bash
set -euo pipefail
python3 - <<'PY'
from pathlib import Path
for p in [Path('requirements-dev.txt'), Path('.pre-commit-config.yaml')]:
print(f"\n== {p} exists={p.exists()} ==")
if p.exists():
text = p.read_text()
for needle in ['mypy==', 'mirrors-mypy', 'rev:']:
if needle in text:
print(f"contains {needle}")
PYRepository: finallyjay/packagist-tracker
Length of output: 301
🏁 Script executed:
#!/bin/bash
set -euo pipefail
python3 - <<'PY'
from pathlib import Path
for path in [Path('requirements-dev.txt'), Path('.pre-commit-config.yaml')]:
print(f"\n== {path} ==")
if not path.exists():
print("MISSING")
continue
for i, line in enumerate(path.read_text().splitlines(), 1):
if 'mypy' in line or 'mirrors-mypy' in line or 'rev:' in line:
print(f"{i}: {line}")
PYRepository: finallyjay/packagist-tracker
Length of output: 379
Align the pre-commit mypy pin with the dev dependency. requirements-dev.txt is on mypy==2.3.0, but .pre-commit-config.yaml still uses rev: v2.1.0, so local checks can run a different mypy version and produce inconsistent results.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@requirements-dev.txt` at line 6, Update the mypy revision in the pre-commit
configuration to match the requirements-dev.txt pin at version 2.3.0, ensuring
both development dependency management and pre-commit checks use the same
version.
Bumps mypy from 2.1.0 to 2.3.0.
Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
8aabf84Drop +dev from version4d8ad2aUpdate changelog for 2.3 release (#21728)2c21546[mypyc] Update documentation of race conditions under free threading (#21726)a9f62a3[mypyc] Make attribute access memory safe on free-threaded builds (#21705)0faa413UsePYODIDEenvironment variable for Emscripten cross-compilation detection...3d75cdb[mypyc] Borrow final attributes more aggressively (#21702)24c237d[mypyc] Improve documentation of Final (#21713)b5be217[mypyc] Update free threading Python compatibility docs (#21711)cbcb51aNarrow for frozendict membership check (#21709)af2bc0fSync typeshed (#21707)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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)