File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 13
13
from pylsp .workspace import Document
14
14
from pylsp .plugins .jedi_completion import pylsp_completions as pylsp_jedi_completions
15
15
from pylsp .plugins .rope_completion import pylsp_completions as pylsp_rope_completions
16
+ from pylsp ._utils import JEDI_VERSION
16
17
17
18
18
19
PY2 = sys .version [0 ] == '2'
@@ -114,11 +115,8 @@ class TypeCase(NamedTuple):
114
115
115
116
@pytest .mark .parametrize ('case' , list (TYPE_CASES .values ()), ids = list (TYPE_CASES .keys ()))
116
117
def test_jedi_completion_type (case , config , workspace ):
117
- # pylint: disable=C0415
118
- import jedi
119
-
120
118
# 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' ):
122
120
return
123
121
124
122
doc = Document (DOC_URI , workspace , case .document )
You can’t perform that action at this time.
0 commit comments