def __floordiv__(self, other): assert type(other) in scalar_types return Vector2(operator.floordiv(self.x, other), operator.floordiv(self.y, other))