1
0
forked from VimPlug/jedi

Removed tree.is_node.

It's not needed anymore, because we have Node/Leaf.type now.
This commit is contained in:
Dave Halter
2017-01-23 20:34:30 +01:00
parent 64abe401ed
commit 7623b1e350
7 changed files with 38 additions and 49 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ def py__getitem__(context, typ, node):
# should be replaced by that class. This is not 100%
# airtight but I don't have a better idea to check that it's
# actually the PEP-0484 typing module and not some other
if tree.is_node(node, "subscriptlist"):
if node.type == "subscriptlist":
nodes = node.children[::2] # skip the commas
else:
nodes = [node]