diff --git a/PythonAPI/carla/source/carla/libcarla.pyi b/PythonAPI/carla/source/carla/libcarla.pyi index 5e864d2ac..b8691681f 100644 --- a/PythonAPI/carla/source/carla/libcarla.pyi +++ b/PythonAPI/carla/source/carla/libcarla.pyi @@ -3815,7 +3815,7 @@ class Vector2D(): def __eq__(self, other: Vector2D) -> bool: """Returns `True` if values for every axis are equal.""" - def __mul__(self, other: Vector2D) -> float: ... + def __mul__(self, other: float) -> Vector2D: ... def __ne__(self, bool: Vector2D) -> bool: """Returns `True` if the value for any axis is different.""" @@ -3825,7 +3825,7 @@ class Vector2D(): ... def __sub__(self, other: Vector2D) -> Vector2D: ... - def __truediv__(self, other: Vector2D): ... + def __truediv__(self, other: float) -> Vector2D: ... # endregion @@ -3849,8 +3849,7 @@ class Vector3D(): def __init__(self, x=0.0, y=0.0, z=0.0): ... def cross(self, vector: Vector3D) -> Vector3D: - """Computes the cross product between two vectors. -""" + """Computes the cross product between two vectors.""" def distance(self, vector: Vector3D) -> float: """Computes the distance between two vectors.""" @@ -3891,11 +3890,11 @@ class Vector3D(): def __add__(self, other: Vector3D) -> Vector3D: ... def __eq__(self, other: Vector3D) -> bool: ... - def __mul__(self, other: Vector3D | float) -> Vector3D: ... + def __mul__(self, other: float) -> Vector3D: ... def __ne__(self, other: Vector3D) -> bool: ... def __str__(self) -> str: ... - def __sub__(self, other: Vector3D): ... - def __truediv__(self, other: Vector3D): ... + def __sub__(self, other: Vector3D) -> Vector3D: ... + def __truediv__(self, other: float) -> Vector3D: ... # endregion