Skip to content

Commit d5c3781

Browse files
authored
Remove obsolete comments from turtle.pyi (#14474)
While it would be possible to use the hack described in the comment now that pytype support has been removed, that hack is a bit too "magical" for stubs that are supposed to be fairly straight-forward API descriptions. This would also introduce extra stub-only attributes and would imply that e.g. `_Screen.setup()` and `setup()` refer to the same object at runtime when they don't.
1 parent 981bd8e commit d5c3781

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

stdlib/turtle.pyi

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -487,19 +487,8 @@ Pen = Turtle
487487

488488
def write_docstringdict(filename: str = "turtle_docstringdict") -> None: ...
489489

490-
# Note: it's somewhat unfortunate that we have to copy the function signatures.
491-
# It would be nice if we could partially reduce the redundancy by doing something
492-
# like the following:
493-
#
494-
# _screen: Screen
495-
# clear = _screen.clear
496-
#
497-
# However, it seems pytype does not support this type of syntax in pyi files.
498-
499490
# Functions copied from TurtleScreenBase:
500491

501-
# Note: mainloop() was always present in the global scope, but was added to
502-
# TurtleScreenBase in Python 3.0
503492
def mainloop() -> None: ...
504493
def textinput(title: str, prompt: str) -> str | None: ...
505494
def numinput(

0 commit comments

Comments
 (0)