Skip to content

Commit 9824a42

Browse files
committed
Fix new lint errors
1 parent 80cb6f4 commit 9824a42

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/pip/_internal/network/auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ def handle_401(self, resp: Response, **kwargs: Any) -> Response:
514514

515515
# Consume content and release the original connection to allow our new
516516
# request to reuse the same one.
517-
resp.content
517+
# The result of the assignment isn't used, it's just needed to consume
518+
# the content.
519+
_ = resp.content
518520
resp.raw.release_conn()
519521

520522
# Add our new username and password to the request

tests/lib/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,9 @@ def run(
684684
# Pass expect_stderr=True to allow any stderr. We do this because
685685
# we do our checking of stderr further on in check_stderr().
686686
kw["expect_stderr"] = True
687-
result = super().run(cwd=cwd, *args, **kw)
687+
# Ignore linter check
688+
# B026 Star-arg unpacking after a keyword argument is strongly discouraged
689+
result = super().run(cwd=cwd, *args, **kw) # noqa
688690

689691
if expect_error and not allow_error:
690692
if result.returncode == 0:

0 commit comments

Comments
 (0)