From 04d7c82783383fbb3655fa4a9560bb08fe5af84f Mon Sep 17 00:00:00 2001 From: snowy Date: Tue, 27 Aug 2024 21:59:04 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix=20=CE=B5=20accuracy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mbcp/mp_math/vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbcp/mp_math/vector.py b/mbcp/mp_math/vector.py index fe89f74..6988472 100644 --- a/mbcp/mp_math/vector.py +++ b/mbcp/mp_math/vector.py @@ -194,7 +194,7 @@ class Vector3: else: 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) def __matmul__(self, other: 'Vector3') -> float: