mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-20 02:42:49 +08:00
Small bug in parameter creation.
This commit is contained in:
@@ -745,10 +745,11 @@ def _create_params(parent, argslist_list):
|
||||
for end, child in enumerate(children + [None], 1):
|
||||
if child is None or child == ',':
|
||||
new_children = children[start:end]
|
||||
if check_python2_nested_param(new_children[0]):
|
||||
continue
|
||||
params.append(Param(new_children, parent))
|
||||
start = end
|
||||
if new_children: # Could as well be comma and then end.
|
||||
if check_python2_nested_param(new_children[0]):
|
||||
continue
|
||||
params.append(Param(new_children, parent))
|
||||
start = end
|
||||
return params
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user