forked from VimPlug/jedi
Few fixes.
This commit is contained in:
@@ -141,7 +141,8 @@ def call_signature_array_for_pos(stmt, pos):
|
|||||||
return None, 0, None
|
return None, 0, None
|
||||||
|
|
||||||
tup = None, 0, None
|
tup = None, 0, None
|
||||||
for command in stmt.expression_list():
|
# TODO this is still old
|
||||||
|
for command in [] and stmt.expression_list():
|
||||||
if isinstance(command, pr.Array):
|
if isinstance(command, pr.Array):
|
||||||
tup = search_array(command, pos)
|
tup = search_array(command, pos)
|
||||||
elif isinstance(command, pr.StatementElement):
|
elif isinstance(command, pr.StatementElement):
|
||||||
@@ -293,10 +294,10 @@ class FakeArray(pr.Array):
|
|||||||
|
|
||||||
|
|
||||||
class FakeStatement(pr.ExprStmt):
|
class FakeStatement(pr.ExprStmt):
|
||||||
def __init__(self, expression_list, start_pos=(0, 0), parent=None):
|
def __init__(self, values, start_pos=(0, 0), parent=None):
|
||||||
p = start_pos
|
p = start_pos
|
||||||
super(FakeStatement, self).__init__(FakeSubModule, expression_list, p, p)
|
super(FakeStatement, self).__init__([])
|
||||||
self.set_expression_list(expression_list)
|
self.values = values
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -653,7 +653,10 @@ class Class(Scope):
|
|||||||
if len(self.children) == 4: # Has no parentheses
|
if len(self.children) == 4: # Has no parentheses
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
return self.children[3]
|
if self.children[3] == ')': # Empty parentheses
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return self.children[3]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user