]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct trivial grammar in reset_mock docs (#101861)
authorSteve Kowalik <steven@wedontsleep.org>
Mon, 13 Feb 2023 09:11:43 +0000 (20:11 +1100)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 09:11:43 +0000 (11:11 +0200)
Doc/library/unittest.mock.rst

index e009f303fef317679705305e37ca26c3e52f8652..d6d8e5e9557d5cd0dcec972bef10bcb043d8f108 100644 (file)
@@ -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)