Skip to content

Commit

Permalink
Fix mypy 1.14.1 error (#13148)
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw authored Jan 11, 2025
1 parent cb56edb commit 23e9222
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
exclude: tests/data
Expand Down
1 change: 1 addition & 0 deletions news/13148.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix mypy 1.14.1 error
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/unpacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def untar_file(filename: str, location: str) -> None:
)
mode = "r:*"

tar = tarfile.open(filename, mode, encoding="utf-8")
tar = tarfile.open(filename, mode, encoding="utf-8") # type: ignore
try:
leading = has_leading_dir([member.name for member in tar.getmembers()])

Expand Down

0 comments on commit 23e9222

Please sign in to comment.