Skip to content

Commit

Permalink
Merge pull request #1037 from lsst/tickets/DM-45209
Browse files Browse the repository at this point in the history
DM-45209: Fix E721 linter warning
  • Loading branch information
timj authored Jul 12, 2024
2 parents 11c1998 + 6a90377 commit ce18b02
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 @@ -23,7 +23,7 @@ repos:
name: isort (python)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.8
rev: v0.5.1
hooks:
- id: ruff
- repo: https://github.com/numpy/numpydoc
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/dimensions/_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def __init__(self, **kwargs: Any):
raise TypeError(f"Invalid fields for {self.definition} dimension record: {set(kwargs.keys())}.")

def __eq__(self, other: Any) -> bool:
if type(other) != type(self):
if type(other) is not type(self):
return False
return self.dataId == other.dataId

Expand Down

0 comments on commit ce18b02

Please sign in to comment.