Skip to content

Commit

Permalink
pythongh-101100: Fix sphinx warnings in turtle.rst (pythonGH-109394)
Browse files Browse the repository at this point in the history
(cherry picked from commit 21e80f4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Sep 14, 2023
1 parent f1f85a4 commit cc6bbf9
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 @@ -2298,7 +2298,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 @@ -2313,7 +2313,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 @@ -2397,15 +2397,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 @@ -132,7 +132,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 cc6bbf9

Please sign in to comment.