E573
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9025a commit 7ecaf21Copy full SHA for 7ecaf21
Doc/library/functools.rst
@@ -347,8 +347,7 @@ The :mod:`functools` module defines the following functions:
347
348
def partial(func, /, *args, **keywords):
349
def newfunc(*more_args, **more_keywords):
350
- keywords_union = {**keywords, **more_keywords}
351
- return func(*args, *more_args, **keywords_union)
+ return func(*args, *more_args, **(keywords | more_keywords))
352
newfunc.func = func
353
newfunc.args = args
354
newfunc.keywords = keywords
0 commit comments