Skip to content

Commit ee5f034

Browse files
authored
[turtle] Use bool for add params (#14898)
1 parent fa0e5fc commit ee5f034

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/turtle.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class TurtleScreen(TurtleScreenBase):
266266
def window_height(self) -> int: ...
267267
def getcanvas(self) -> Canvas: ...
268268
def getshapes(self) -> list[str]: ...
269-
def onclick(self, fun: Callable[[float, float], object], btn: int = 1, add: Any | None = None) -> None: ...
269+
def onclick(self, fun: Callable[[float, float], object], btn: int = 1, add: bool | None = None) -> None: ...
270270
def onkey(self, fun: Callable[[], object], key: str) -> None: ...
271271
def listen(self, xdummy: float | None = None, ydummy: float | None = None) -> None: ...
272272
def ontimer(self, fun: Callable[[], object], t: int = 0) -> None: ...
@@ -561,7 +561,7 @@ def window_width() -> int: ...
561561
def window_height() -> int: ...
562562
def getcanvas() -> Canvas: ...
563563
def getshapes() -> list[str]: ...
564-
def onclick(fun: Callable[[float, float], object], btn: int = 1, add: Any | None = None) -> None: ...
564+
def onclick(fun: Callable[[float, float], object], btn: int = 1, add: bool | None = None) -> None: ...
565565
def onkey(fun: Callable[[], object], key: str) -> None: ...
566566
def listen(xdummy: float | None = None, ydummy: float | None = None) -> None: ...
567567
def ontimer(fun: Callable[[], object], t: int = 0) -> None: ...
@@ -776,8 +776,8 @@ def getturtle() -> Turtle: ...
776776

777777
getpen = getturtle
778778

779-
def onrelease(fun: Callable[[float, float], object], btn: int = 1, add: Any | None = None) -> None: ...
780-
def ondrag(fun: Callable[[float, float], object], btn: int = 1, add: Any | None = None) -> None: ...
779+
def onrelease(fun: Callable[[float, float], object], btn: int = 1, add: bool | None = None) -> None: ...
780+
def ondrag(fun: Callable[[float, float], object], btn: int = 1, add: bool | None = None) -> None: ...
781781
def undo() -> None: ...
782782

783783
turtlesize = shapesize

0 commit comments

Comments
 (0)