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