From: Cody Maloney Date: Thu, 11 Jun 2026 15:29:40 +0000 (-0700) Subject: gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (#151302) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b18168cb32d545ed976b760983478cbd5dde5bdf;p=thirdparty%2FPython%2Fcpython.git gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (#151302) --- diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 2ff1015af7a8..6ba1b87ea942 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -2223,7 +2223,7 @@ return something else:: >>> mock == 3 True -The return value of :meth:`MagicMock.__iter__` can be any iterable object and isn't +The return value of :meth:`!__iter__` can be any iterable object and isn't required to be an iterator: >>> mock = MagicMock() diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index 31173134dd50..aa08f7acb991 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -29,7 +29,6 @@ Doc/library/test.rst Doc/library/tkinter.rst Doc/library/tkinter.scrolledtext.rst Doc/library/tkinter.ttk.rst -Doc/library/unittest.mock.rst Doc/library/urllib.parse.rst Doc/library/urllib.request.rst Doc/library/wsgiref.rst