vector.py
class Vector:
__slots__ = ('x', 'y')
def __init__(self, x: float, y: float):
self.x = x
self.y = y
def __abs__(self) -> float:
return (self.x**2 + self.y**2) ** 0.5
def __repr__(self) -> str:
return f'Vector({self.x}, {self.y})'