Show More
@@ -1350,11 +1350,11 b' class IPCompleter(Completer):' | |||
|
1350 | 1350 | |
|
1351 | 1351 | try: |
|
1352 | 1352 | # should we check the type of the node is Error ? |
|
1353 |
from |
|
|
1353 | from parso.tree import ErrorLeaf | |
|
1354 | 1354 | next_to_last_tree = interpreter._get_module().tree_node.children[-2] |
|
1355 | 1355 | completing_string = False |
|
1356 | 1356 | if isinstance(next_to_last_tree, ErrorLeaf): |
|
1357 |
completing_string = |
|
|
1357 | completing_string = next_to_last_tree.value[0] in {'"', "'"} | |
|
1358 | 1358 | # if we are in a string jedi is likely not the right candidate for |
|
1359 | 1359 | # now. Skip it. |
|
1360 | 1360 | try_jedi = not completing_string |
General Comments 0
You need to be logged in to leave comments.
Login now