Skip to content

Commit

Permalink
Merge pull request #2717 from rethanon/main
Browse files Browse the repository at this point in the history
Update to type hint (vector2) and docs (draw line)
  • Loading branch information
Charlie Hayden committed Sep 13, 2021
2 parents 32a5502 + eae158e commit cfb2fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildconfig/pygame-stubs/math.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Vector2:
@overload
def __init__(
self,
x: Union[float, Tuple[float, float, float], List[float], Vector2] = 0,
x: Union[float, Tuple[float, float], List[float], Vector2] = 0,
) -> None: ...
@overload
def __init__(
Expand Down
2 changes: 1 addition & 1 deletion docs/reST/ref/draw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ object around the draw calls (see :func:`pygame.Surface.lock` and
.. function:: line

| :sl:`draw a straight line`
| :sg:`line(surface, color, start_pos, end_pos, width) -> Rect`
| :sg:`line(surface, color, start_pos, end_pos) -> Rect`
| :sg:`line(surface, color, start_pos, end_pos, width=1) -> Rect`
Draws a straight line on the given surface. There are no endcaps. For thick
Expand Down

0 comments on commit cfb2fa1

Please sign in to comment.