Skip to content

Commit

Permalink
Update ruff, fix E721
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Aug 4, 2024
1 parent a5bad4b commit bff5db7
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -22,7 +22,7 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.5.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def __str__(self) -> str:

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

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

0 comments on commit bff5db7

Please sign in to comment.