mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
docs.inspect: Fix BoundArguments example. Issue #22998.
This commit is contained in:
parent
96a4b5adfc
commit
ed648a35ec
1 changed files with 2 additions and 1 deletions
|
@ -678,7 +678,8 @@ function.
|
|||
((5,), {})
|
||||
|
||||
>>> for param in sig.parameters.values():
|
||||
... if param.name not in ba.arguments:
|
||||
... if (param.name not in ba.arguments
|
||||
... and param.default is not param.empty):
|
||||
... ba.arguments[param.name] = param.default
|
||||
|
||||
>>> ba.args, ba.kwargs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue