Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.11] gh-101100: Fix sphinx warnings in turtle.rst (GH-109394) #109417

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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