diff --git a/svgelements/svgelements.py b/svgelements/svgelements.py index 59a0b328..b2da97ac 100644 --- a/svgelements/svgelements.py +++ b/svgelements/svgelements.py @@ -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