🐛 fix ε accuracy

This commit is contained in:
远野千束 2024-08-27 21:59:04 +08:00
parent b45d85a8c7
commit 04d7c82783

View File

@ -194,7 +194,7 @@ class Vector3:
else: else:
raise TypeError(f"unsupported operand type(s) for *: 'Vector3' and '{type(other)}'") raise TypeError(f"unsupported operand type(s) for *: 'Vector3' and '{type(other)}'")
def __rmul__(self, other: float | int) -> 'Vector3': def __rmul__(self, other: 'RealNumber') -> 'Vector3':
return self.__mul__(other) return self.__mul__(other)
def __matmul__(self, other: 'Vector3') -> float: def __matmul__(self, other: 'Vector3') -> float: