mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use the zero argument form of super() in examples for Python3 docs. (GH-22314)
This commit is contained in:
parent
425434dadc
commit
52cd6d5e1b
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