Skip to content

Commit bff5db7

Browse files
committed
Update ruff, fix E721
1 parent a5bad4b commit bff5db7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: black
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.5.0
25+
rev: v0.5.6
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]

src/pip/_internal/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def __str__(self) -> str:
555555

556556
# This is useful for testing.
557557
def __eq__(self, other: Any) -> bool:
558-
if type(self) != type(other):
558+
if type(self) is not type(other):
559559
return False
560560

561561
# The string being used for redaction doesn't also have to match,

0 commit comments

Comments
 (0)