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):
186186
187187 for unref in unreferenced :
188188 for location_range in _search_symbol (document .source , unref ):
189+ # TODO(youben) use jedi.names to get the type of unref
189190 # Find out if the unref is an import or a variable/func
190191 imports = _get_imports_list (document .source )
191192 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):
102102 # wait for the index to be ready
103103 sleep (1 )
104104 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 ]
106106 arguments = action ['arguments' ][0 ]
107107
108108 assert action ['command' ] == importmagic_lint .REMOVE_IMPORT_COMMAND
You can’t perform that action at this time.
0 commit comments