[Python-checkins] Correct trivial grammar in reset_mock docs (#101861)

hugovk webhook-mailer at python.org
Mon Feb 13 04:11:54 EST 2023


https://github.com/python/cpython/commit/a1f08f5f19753c7c9295f51b5ae1262c7a1c838f
commit: a1f08f5f19753c7c9295f51b5ae1262c7a1c838f
branch: main
author: Steve Kowalik <steven at wedontsleep.org>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023年02月13日T11:11:43+02:00
summary:
Correct trivial grammar in reset_mock docs (#101861)
files:
M Doc/library/unittest.mock.rst
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index e009f303fef3..d6d8e5e9557d 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -406,7 +406,7 @@ the *new_callable* argument to :func:`patch`.
 False
 
 .. versionchanged:: 3.6
- Added two keyword only argument to the reset_mock function.
+ Added two keyword-only arguments to the reset_mock function.
 
 This can be useful where you want to make a series of assertions that
 reuse the same object. Note that :meth:`reset_mock` *doesn't* clear the
@@ -416,8 +416,8 @@ the *new_callable* argument to :func:`patch`.
 parameter as ``True``. Child mocks and the return value mock
 (if any) are reset as well.
 
- .. note:: *return_value*, and :attr:`side_effect` are keyword only
- argument.
+ .. note:: *return_value*, and :attr:`side_effect` are keyword-only
+ arguments.
 
 
 .. method:: mock_add_spec(spec, spec_set=False)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /