Fix issues with random tuples in TreeArgument.

Thanks @micbou for noticing it.
https://github.com/davidhalter/jedi/commit/b92c7d3351a34052237df4a292ec81ef97647e7f
This commit is contained in:
Dave Halter committed 2018-01-18 09:54:19 +01:00
1 parent b92c7d3351
commit 609f59ce41
3 files changed
+23 -24

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ def eval_node(context, element):
def eval_trailer(context, base_contexts, trailer):
trailer_op, node = trailer.children[:2]
if node == ')': # `arglist` is optional.
node = ()
node = None
if trailer_op == '[':
trailer_op, node, _ = trailer.children