Skip to content

Commit ecca3f2

Browse files
committed
Updated stub to hopefully make mypy happy
1 parent 631cab3 commit ecca3f2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/reST/ref/math.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ Conversion can be combined with swizzling or slicing to create a new order
385385
.. method:: lerp
386386

387387
| :sl:`returns a linear interpolation to the given vector.`
388-
| :sg:`lerp(Vector2, float, /) -> Vector2`
389-
| :sg:`lerp(Vector2, float, bool, /) -> Vector2`
388+
| :sg:`lerp(Vector2, float, do_clamp = True /) -> Vector2`
390389
391390
Returns a Vector which is a linear interpolation between self and the
392391
given Vector. The second parameter determines how far between self and
@@ -880,8 +879,7 @@ Conversion can be combined with swizzling or slicing to create a new order
880879
.. method:: lerp
881880

882881
| :sl:`returns a linear interpolation to the given vector.`
883-
| :sg:`lerp(Vector3, float, /) -> Vector3`
884-
| :sg:`lerp(Vector3, float, bool, /)`
882+
| :sg:`lerp(Vector3, float, do_clamp = True, /) -> Vector3`
885883
886884
Returns a Vector which is a linear interpolation between self and the
887885
given Vector. The second parameter determines how far between self an

src_c/doc/math_doc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define DOC_MATH_VECTOR2_DISTANCESQUAREDTO "distance_squared_to(Vector2, /) -> float\ncalculates the squared Euclidean distance to a given vector."
2323
#define DOC_MATH_VECTOR2_MOVETOWARDS "move_towards(Vector2, float, /) -> Vector2\nreturns a vector moved toward the target by a given distance."
2424
#define DOC_MATH_VECTOR2_MOVETOWARDSIP "move_towards_ip(Vector2, float, /) -> None\nmoves the vector toward its target at a given distance."
25-
#define DOC_MATH_VECTOR2_LERP "lerp(Vector2, float, /) -> Vector2\nlerp(Vector2, float, bool, /) -> Vector2\nreturns a linear interpolation to the given vector."
25+
#define DOC_MATH_VECTOR2_LERP "lerp(Vector2, float, do_clamp = True /) -> Vector2\nreturns a linear interpolation to the given vector."
2626
#define DOC_MATH_VECTOR2_SLERP "slerp(Vector2, float, /) -> Vector2\nreturns a spherical interpolation to the given vector."
2727
#define DOC_MATH_VECTOR2_SMOOTHSTEP "smoothstep(Vector2, float, /) -> Vector2\nreturns a smooth interpolation to the given vector."
2828
#define DOC_MATH_VECTOR2_ELEMENTWISE "elementwise() -> VectorElementwiseProxy\nThe next operation will be performed elementwise."
@@ -59,7 +59,7 @@
5959
#define DOC_MATH_VECTOR3_DISTANCESQUAREDTO "distance_squared_to(Vector3, /) -> float\ncalculates the squared Euclidean distance to a given vector."
6060
#define DOC_MATH_VECTOR3_MOVETOWARDS "move_towards(Vector3, float, /) -> Vector3\nreturns a vector moved toward the target by a given distance."
6161
#define DOC_MATH_VECTOR3_MOVETOWARDSIP "move_towards_ip(Vector3, float, /) -> None\nmoves the vector toward its target at a given distance."
62-
#define DOC_MATH_VECTOR3_LERP "lerp(Vector3, float, /) -> Vector3\nreturns a linear interpolation to the given vector."
62+
#define DOC_MATH_VECTOR3_LERP "lerp(Vector3, float, do_clamp = True, /) -> Vector3\nreturns a linear interpolation to the given vector."
6363
#define DOC_MATH_VECTOR3_SLERP "slerp(Vector3, float, /) -> Vector3\nreturns a spherical interpolation to the given vector."
6464
#define DOC_MATH_VECTOR3_SMOOTHSTEP "smoothstep(Vector3, float, /) -> Vector3\nreturns a smooth interpolation to the given vector."
6565
#define DOC_MATH_VECTOR3_ELEMENTWISE "elementwise() -> VectorElementwiseProxy\nThe next operation will be performed elementwise."

0 commit comments

Comments
 (0)