Comprehensions are also possible arguments. Fixes 1146
This commit is contained in:
1 parent
a79a1fbef5
commit
8ffdf6746f
2 files changed
+15
-3
No files matched your search
+2
-1
@@ -166,7 +166,8 @@ def _get_index_and_key(nodes, position):
|
||||
|
||||
if nodes_before:
|
||||
last = nodes_before[-1]
|
||||
if last.type == 'argument' and last.children[1].end_pos <= position:
|
||||
if last.type == 'argument' and last.children[1] == '=' \
|
||||
and last.children[1].end_pos <= position:
|
||||
# Checked if the argument
|
||||
key_str = last.children[0].value
|
||||
elif last == '=':
|
||||
|
||||
Reference in new issue
Block a user