style: format to length 100
This commit is contained in:
@@ -12,17 +12,13 @@ class Coordinate(BaseModel):
|
||||
# Overload +
|
||||
def __add__(self, other: "Coordinate") -> "Coordinate":
|
||||
if isinstance(other, Coordinate):
|
||||
return Coordinate(
|
||||
x=self.x + other.x, y=self.y + other.y, z=self.z + other.z
|
||||
)
|
||||
return Coordinate(x=self.x + other.x, y=self.y + other.y, z=self.z + other.z)
|
||||
return NotImplemented
|
||||
|
||||
# Overload -
|
||||
def __sub__(self, other: "Coordinate") -> "Coordinate":
|
||||
if isinstance(other, Coordinate):
|
||||
return Coordinate(
|
||||
x=self.x - other.x, y=self.y - other.y, z=self.z - other.z
|
||||
)
|
||||
return Coordinate(x=self.x - other.x, y=self.y - other.y, z=self.z - other.z)
|
||||
return NotImplemented
|
||||
|
||||
# Overload *
|
||||
|
||||
Reference in New Issue
Block a user