1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

fix zip error

This commit is contained in:
thatmattlove 2022-12-24 18:21:25 -05:00
parent 63611311da
commit 43faa0f8e4
2 changed files with 2 additions and 3 deletions

View file

@ -118,9 +118,7 @@ class HyperglassUniqueModel(HyperglassModel):
def __hash__(self: "HyperglassUniqueModel") -> int:
"""Create a hashed representation of this model's name."""
fields = dict(
zip(self._unique_fields, (getattr(self, f) for f in self._unique_fields), strict=True)
)
fields = dict(zip(self._unique_fields, (getattr(self, f) for f in self._unique_fields)))
return hash(json.dumps(fields))

View file

@ -134,6 +134,7 @@ ignore = [
"D418", # No docstring on overloaded functions.
"N818", # Error suffix on custom exceptions.
"RET501", # Explicitly return None
"B905", # zip without `strict`
]
line-length = 100
select = ["B", "C", "D", "E", "F", "I", "N", "S", "RET", "W"]