mirror of
https://github.com/python/cpython.git
synced 2025-10-05 14:41:07 +00:00
Use the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH-25638)
(cherry picked from commit 52cd6d5e1b
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
This commit is contained in:
parent
f65f3f0e99
commit
c816c1c779
6 changed files with 12 additions and 12 deletions
|
@ -893,7 +893,7 @@ Here's an example implementation:
|
|||
... def __call__(self, /, *args, **kwargs):
|
||||
... args = deepcopy(args)
|
||||
... kwargs = deepcopy(kwargs)
|
||||
... return super(CopyingMock, self).__call__(*args, **kwargs)
|
||||
... return super().__call__(*args, **kwargs)
|
||||
...
|
||||
>>> c = CopyingMock(return_value=None)
|
||||
>>> arg = set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue