Correct Turtle.dot() parameters (#14694)

This commit is contained in:
Jan-Eric Nitschke
2025-09-11 17:39:08 +02:00
committed by GitHub
parent d9c76e1d9f
commit 6937a9b193
2 changed files with 47 additions and 2 deletions
+12 -2
View File
@@ -463,7 +463,12 @@ class RawTurtle(TPen, TNavigator): # type: ignore[misc] # Conflicting methods
def begin_fill(self) -> None: ...
def end_fill(self) -> None: ...
def dot(self, size: int | None = None, *color: _Color) -> None: ...
@overload
def dot(self, size: int | _Color | None = None) -> None: ...
@overload
def dot(self, size: int | None, color: _Color, /) -> None: ...
@overload
def dot(self, size: int | None, r: float, g: float, b: float, /) -> None: ...
def write(
self, arg: object, move: bool = False, align: str = "left", font: tuple[str, int, str] = ("Arial", 8, "normal")
) -> None: ...
@@ -747,7 +752,12 @@ if sys.version_info >= (3, 14):
def begin_fill() -> None: ...
def end_fill() -> None: ...
def dot(size: int | None = None, *color: _Color) -> None: ...
@overload
def dot(size: int | _Color | None = None) -> None: ...
@overload
def dot(size: int | None, color: _Color, /) -> None: ...
@overload
def dot(size: int | None, r: float, g: float, b: float, /) -> None: ...
def write(arg: object, move: bool = False, align: str = "left", font: tuple[str, int, str] = ("Arial", 8, "normal")) -> None: ...
if sys.version_info >= (3, 14):