mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Update turtle to 3.12 (#10548)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from collections.abc import Callable, Sequence
|
||||
from tkinter import Canvas, Frame, Misc, PhotoImage, Scrollbar
|
||||
from typing import Any, ClassVar, overload
|
||||
@@ -249,6 +250,9 @@ class TNavigator:
|
||||
def reset(self) -> None: ...
|
||||
def degrees(self, fullcircle: float = 360.0) -> None: ...
|
||||
def radians(self) -> None: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def teleport(self, x: float | None = None, y: float | None = None, *, fill_gap: bool = False) -> None: ...
|
||||
|
||||
def forward(self, distance: float) -> None: ...
|
||||
def back(self, distance: float) -> None: ...
|
||||
def right(self, angle: float) -> None: ...
|
||||
@@ -321,6 +325,9 @@ class TPen:
|
||||
def color(self, r: float, g: float, b: float) -> None: ...
|
||||
@overload
|
||||
def color(self, color1: _Color, color2: _Color) -> None: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def teleport(self, x: float | None = None, y: float | None = None, *, fill_gap: bool = False) -> None: ...
|
||||
|
||||
def showturtle(self) -> None: ...
|
||||
def hideturtle(self) -> None: ...
|
||||
def isvisible(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user