mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
inspect: Fix BoundArguments.apply_defaults to handle empty arguments
Patch by Frederick Wagner (issue #26347)
This commit is contained in:
parent
1bd030788d
commit
f9e1f2bda9
2 changed files with 7 additions and 2 deletions
|
@ -2591,8 +2591,6 @@ class BoundArguments:
|
|||
empty dict.
|
||||
"""
|
||||
arguments = self.arguments
|
||||
if not arguments:
|
||||
return
|
||||
new_arguments = []
|
||||
for name, param in self._signature.parameters.items():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue