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

(cherry picked from commit 21e80f4c19)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2023-09-14 11:41:26 -07:00 committed by GitHub
parent f1f85a42ea
commit 8e23cd0bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -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
@ -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.
@ -2397,7 +2397,7 @@ 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`.
@ -2405,7 +2405,7 @@ or :class:`TurtleScreen`.
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

View File

@ -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