https://github.com/python/cpython/commit/bba688665ff418d4cb524a2427412a6b4f44ef1b commit: bba688665ff418d4cb524a2427412a6b4f44ef1b branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-06-11T16:38:41+01:00 summary:
[3.13] gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (GH-151302) (cherry picked from commit b18168cb32d545ed976b760983478cbd5dde5bdf) Co-authored-by: Cody Maloney <[email protected]> files: M Doc/library/unittest.mock.rst M Doc/tools/.nitignore diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 92d41222d3827f5..8875ccadf6ad11a 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 c863c99e6dca0c7..e2c69462f21fdcb 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -35,7 +35,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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
