https://github.com/python/cpython/commit/41f2d6f147b14b7b2ac912b31e9fcd9948507268 commit: 41f2d6f147b14b7b2ac912b31e9fcd9948507268 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-06-11T16:39:04+01:00 summary:
[3.14] gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (GH-151302) (#151356) (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 549b04997886faf..3cd731899fead29 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -2224,7 +2224,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 f93f2903534cea8..6134ffafa47529c 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -33,7 +33,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]
