mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-27 00:23:17 +08:00
Small bug in parameter creation.
This commit is contained in:
1 parent
0de5a0f412
commit
54d8cd0a9b
1 file changed
+1
@@ -745,6 +745,7 @@ 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 new_children: # Could as well be comma and then end.
|
||||||
if check_python2_nested_param(new_children[0]):
|
if check_python2_nested_param(new_children[0]):
|
||||||
continue
|
continue
|
||||||
params.append(Param(new_children, parent))
|
params.append(Param(new_children, parent))
|
||||||
|
|||||||
Reference in new issue
Block a user