Skip to content

Commit 23e9222

Browse files
authored
Fix mypy 1.14.1 error (#13148)
1 parent cb56edb commit 23e9222

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
args: [--fix, --exit-non-zero-on-fix]
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.13.0
31+
rev: v1.14.1
3232
hooks:
3333
- id: mypy
3434
exclude: tests/data

news/13148.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix mypy 1.14.1 error

src/pip/_internal/utils/unpacking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def untar_file(filename: str, location: str) -> None:
176176
)
177177
mode = "r:*"
178178

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

0 commit comments

Comments
 (0)