mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-20 20:41:13 +08:00
exception throw fix
This commit is contained in:
@@ -133,7 +133,7 @@ class Executable(object):
|
|||||||
while key:
|
while key:
|
||||||
try:
|
try:
|
||||||
key_param = param_dict[key]
|
key_param = param_dict[key]
|
||||||
except IndexError:
|
except KeyError:
|
||||||
non_matching_keys.append((key, value))
|
non_matching_keys.append((key, value))
|
||||||
else:
|
else:
|
||||||
result.append(gen_param_name_copy(key_param,
|
result.append(gen_param_name_copy(key_param,
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ def kwargs_func(**kwargs):
|
|||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
exe = kwargs_func(a=3,b=4)
|
exe = kwargs_func(a=3,b=4)
|
||||||
#? []
|
#? ['items']
|
||||||
exe.
|
exe.items
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# *args / ** kwargs
|
# *args / ** kwargs
|
||||||
|
|||||||
Reference in New Issue
Block a user