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