Skip to content

Commit

Permalink
gh-101100: Fix sphinx warnings in turtle.rst (#109394)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 14, 2023
1 parent 909adb5 commit 21e80f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ Public classes
.. class:: RawTurtle(canvas)
RawPen(canvas)

:param canvas: a :class:`tkinter.Canvas`, a :class:`ScrolledCanvas` or a
:param canvas: a :class:`!tkinter.Canvas`, a :class:`ScrolledCanvas` or a
:class:`TurtleScreen`

Create a turtle. The turtle has all methods described above as "methods of
Expand All @@ -2330,7 +2330,7 @@ Public classes

.. class:: TurtleScreen(cv)

:param cv: a :class:`tkinter.Canvas`
:param cv: a :class:`!tkinter.Canvas`

Provides screen oriented methods like :func:`bgcolor` etc. that are described
above.
Expand Down Expand Up @@ -2414,15 +2414,15 @@ instance if one is not already present.

``Turtle`` is a subclass of :class:`RawTurtle`, which *doesn't* automatically
create a drawing surface - a *canvas* will need to be provided or created for
it. The *canvas* can be a :class:`tkinter.Canvas`, :class:`ScrolledCanvas`
it. The *canvas* can be a :class:`!tkinter.Canvas`, :class:`ScrolledCanvas`
or :class:`TurtleScreen`.


:class:`TurtleScreen` is the basic drawing surface for a
turtle. :class:`Screen` is a subclass of ``TurtleScreen``, and
includes :ref:`some additional methods <screenspecific>` for managing its
appearance (including size and title) and behaviour. ``TurtleScreen``'s
constructor needs a :class:`tkinter.Canvas` or a
constructor needs a :class:`!tkinter.Canvas` or a
:class:`ScrolledCanvas` as an argument.

The functional interface for turtle graphics uses the various methods of
Expand Down
1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ Doc/library/tkinter.scrolledtext.rst
Doc/library/tkinter.ttk.rst
Doc/library/traceback.rst
Doc/library/tty.rst
Doc/library/turtle.rst
Doc/library/unittest.mock.rst
Doc/library/unittest.rst
Doc/library/urllib.parse.rst
Expand Down

0 comments on commit 21e80f4

Please sign in to comment.