mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Correct Turtle.dot() parameters (#14694)
This commit is contained in:
committed by
GitHub
parent
d9c76e1d9f
commit
6937a9b193
+12
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user