Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 24, 2024
1 parent e432482 commit 5dfccb2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cf_units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ class Unit(_OrderedHashable):
def _init_from_tuple(self, values):
# Implements the required interface for an _OrderedHashable.
# This will also ensure a Unit._init(*Unit.names) method exists.
for name, value in zip(self._names, values):
for name, value in zip(self._names, values, strict=False):
object.__setattr__(self, name, value)

# Provide hash semantics
Expand Down Expand Up @@ -1385,9 +1385,7 @@ def __repr__(self):
if self.calendar is None:
result = f"{self.__class__.__name__}('{self}')"
else:
result = "{}('{}', calendar='{}')".format(
self.__class__.__name__, self, self.calendar
)
result = f"{self.__class__.__name__}('{self}', calendar='{self.calendar}')"
return result

def _offset_common(self, offset):
Expand Down

0 comments on commit 5dfccb2

Please sign in to comment.