add turtle.TNavigator.speed (#13150)

This commit is contained in:
Stephen Morton
2024-11-28 07:01:57 -08:00
committed by GitHub
parent 0969d25a1f
commit e22419c0ed
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,6 @@ multiprocessing.pool.ThreadPool.Process
multiprocessing.synchronize.Semaphore.get_value
tkinter.Misc.config
tkinter.font.Font.counter
turtle.TNavigator.speed
_ctypes.PyObj_FromPtr
_ctypes.Py_DECREF

View File

@@ -283,6 +283,7 @@ class TNavigator:
def heading(self) -> float: ...
def setheading(self, to_angle: float) -> None: ...
def circle(self, radius: float, extent: float | None = None, steps: int | None = None) -> None: ...
def speed(self, s: int | None = 0) -> int | None: ...
fd = forward
bk = back
backward = back
@@ -363,7 +364,7 @@ class TPen:
st = showturtle
ht = hideturtle
class RawTurtle(TPen, TNavigator):
class RawTurtle(TPen, TNavigator): # type: ignore[misc] # Conflicting methods in base classes
screen: TurtleScreen
screens: ClassVar[list[TurtleScreen]]
def __init__(