Skip to content

Commit 1c509f9

Browse files
committed
typo
1 parent 809a4af commit 1c509f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyls/plugins/importmagic_lint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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:

test/plugins/test_importmagic_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)