File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1313from pylsp .workspace import Document
1414from pylsp .plugins .jedi_completion import pylsp_completions as pylsp_jedi_completions
1515from pylsp .plugins .rope_completion import pylsp_completions as pylsp_rope_completions
16+ from pylsp ._utils import JEDI_VERSION
1617
1718
1819PY2 = sys .version [0 ] == '2'
@@ -114,11 +115,8 @@ class TypeCase(NamedTuple):
114115
115116@pytest .mark .parametrize ('case' , list (TYPE_CASES .values ()), ids = list (TYPE_CASES .keys ()))
116117def test_jedi_completion_type (case , config , workspace ):
117- # pylint: disable=C0415
118- import jedi
119-
120118 # property support was introduced in 0.18
121- if case .expected == lsp .CompletionItemKind .Property and jedi . __version__ .startswith ('0.17' ):
119+ if case .expected == lsp .CompletionItemKind .Property and JEDI_VERSION .startswith ('0.17' ):
122120 return
123121
124122 doc = Document (DOC_URI , workspace , case .document )
You can’t perform that action at this time.
0 commit comments