File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ def pyls_lint(document):
186
186
187
187
for unref in unreferenced :
188
188
for location_range in _search_symbol (document .source , unref ):
189
+ # TODO(youben) use jedi.names to get the type of unref
189
190
# Find out if the unref is an import or a variable/func
190
191
imports = _get_imports_list (document .source )
191
192
if unref in imports :
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def test_importmagic_remove_import_action(config):
102
102
# wait for the index to be ready
103
103
sleep (1 )
104
104
actions = importmagic_lint .pyls_code_actions (config , doc )
105
- action = [a for a in actions if a ['title' ] == 'Remove unused import "time"' ][0 ]
105
+ action = [a for a in actions if a ['title' ] == 'Remove unused import of "time"' ][0 ]
106
106
arguments = action ['arguments' ][0 ]
107
107
108
108
assert action ['command' ] == importmagic_lint .REMOVE_IMPORT_COMMAND
You can’t perform that action at this time.
0 commit comments