Skip to content

Commit

Permalink
re-run ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Nov 14, 2023
1 parent a3b11c4 commit e255333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cf_units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,8 @@ def convert(self, value, other, ctype=FLOAT64, inplace=False):
if result.dtype.type not in (np.float32, np.float64):
raise TypeError(
"Expect a numpy array of "
f"'{np.float32}' or '{np.float64}'")
f"'{np.float32}' or '{np.float64}'"
)
ctype = result.dtype.type
# Utilise global convenience dictionary
# _cv_convert_array to convert our array in 1d form
Expand Down
4 changes: 1 addition & 3 deletions cf_units/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ def __new__(cls, name, bases, namespace):
)
exec(method_source, namespace)

return super().__new__(
cls, name, bases, namespace
)
return super().__new__(cls, name, bases, namespace)


class _OrderedHashable(Hashable, metaclass=_MetaOrderedHashable):
Expand Down

0 comments on commit e255333

Please sign in to comment.