Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarize committed May 14, 2023
1 parent df64ca7 commit ba29e5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion svgelements/svgelements.py
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,12 @@ def __eq__(self, other):
other = Point(other)
except Exception:
return NotImplemented
if isinstance(self.x, Length) or isinstance(self.y, Length) or isinstance(other.x, Length) or isinstance(other.x, Length):
if (
isinstance(self.x, Length)
or isinstance(self.y, Length)
or isinstance(other.x, Length)
or isinstance(other.x, Length)
):
return self.x == other.x and self.y == other.y
return abs(self.x - other.x) <= ERROR and abs(self.y - other.y) <= ERROR

Expand Down

0 comments on commit ba29e5b

Please sign in to comment.