fix problem that strings are no function calls
This commit is contained in:
1 parent
972d4e9a08
commit
18e561f332
2 files changed
+18
-7
No files matched your search
+1
-1
@@ -123,7 +123,7 @@ def search_function_definition(stmt, pos):
|
||||
while isinstance(call.parent, pr.Call):
|
||||
call = call.parent
|
||||
arr.parent.execution = None
|
||||
return call, index, False
|
||||
return call if call.type == pr.Call.NAME else None, index, False
|
||||
return None, 0, False
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user