Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AstraLuma authored and nbraud committed Oct 23, 2021
1 parent a6f5cd7 commit b844440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppb_vector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ def __new__(cls, *args, **kwargs):
# https://docs.python.org/3/library/dataclasses.html#frozen-instances
object.__setattr__(self, 'x', float(x))
except ValueError:
raise TypeError(f"{type(x).__name__} object not convertable to float")
raise TypeError(f"{type(x).__name__} object not convertable to float") from None

try:
object.__setattr__(self, 'y', float(y))
except ValueError:
raise TypeError(f"{type(y).__name__} object not convertable to float")
raise TypeError(f"{type(y).__name__} object not convertable to float") from None

return self

Expand Down

0 comments on commit b844440

Please sign in to comment.