gh-101100: Fix sphinx warnings in turtle.rst (#109394)

This commit is contained in:
Nikita Sobolev 2023-09-14 21:24:18 +03:00 committed by GitHub
parent 909adb5092
commit 21e80f4c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -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
@ -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.
@ -2414,7 +2414,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`.
@ -2422,7 +2422,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

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