Skip to content

Commit c701027

Browse files
authored
Update polygon.py
Update docs
1 parent c5774ef commit c701027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_display_shapes/polygon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class Polygon(displayio.TileGrid):
3939
:param list points: A list of (x, y) tuples of the points
4040
:param int|None outline: The outline of the polygon. Can be a hex value for a color or
4141
``None`` for no outline.
42-
:param bool close: Wether to connect first and last point.
42+
:param bool close: (Optional) Wether to connect first and last point. (True)
4343
"""
4444

4545
def __init__(
4646
self,
4747
points: List[Tuple[int, int]],
4848
*,
4949
outline: Optional[int] = None,
50-
close: bool = True,
50+
close: Optional[bool] = True,
5151
) -> None:
5252
if close:
5353
points.append(points[0])

0 commit comments

Comments
 (0)