Pin `mypy==1.18.2` by George-Ogden · Pull Request #2087 · gitpython-developers/GitPython
test-requirements.txt
Pins mypy==1.18.2 for Python 3.9+ to prevent new type errors from future mypy releases
pyproject.toml
Removes python_version constraint allowing mypy to use the running Python version
.github/workflows/pythonpackage.yml
Restricts mypy checks to Python 3.9+ and removes continue-on-error to fail CI on type errors
test/test_submodule.py
Adds
__test__ = False to prevent pytest treating TestRootProgress as a test class and adds noqa for assertRaises
test/test_remote.py
Adds return type annotation and __test__ = False to TestRemoteProgress
test/lib/helper.py
Removes unnecessary B001 noqa code from bare except statements
test/deprecation/test_types.py
Removes type ignore comment now that Lit_commit_ish is properly defined
git/types.py
Guards Lit_commit_ish type alias with TYPE_CHECKING for proper deprecation handling
git/util.py
Adds type ignores for IterableList, fixes isinstance check logic, and improves error messages
git/repo/fun.py
Removes unnecessary cast from ref.commit
git/repo/base.py
Simplifies config reader comprehension and adds type ignores for progress argument
git/refs/tag.py
Moves type ignore comments to property decorator line for better clarity
git/refs/symbolic.py
Replaces explicit type annotation with cast for instance variable
git/refs/log.py
Adds type ignore for RefLogEntry tuple construction
git/refs/head.py
Removes duplicate commit type annotation and adds type ignore for delete override
git/objects/submodule/base.py
Adds RemoteReference cast for tracking_branch() result and imports RemoteReference
git/objects/commit.py
Adds str() cast for message in regex to handle bytes type
git/index/typ.py
Adds type ignore comments for IndexEntry tuple construction
git/diff.py
Adds type annotation for change_type class variable with noqa comment
git/config.py
Updates format string to f-string, removes unnecessary cast and comment, and uses cp._SectionName type