1
0
forked from VimPlug/jedi

Make the completions possible for Interpreter objects

This commit is contained in:
Dave Halter
2019-12-31 14:52:44 +01:00
parent b7a8929905
commit 83ce8b1162
5 changed files with 60 additions and 3 deletions

View File

@@ -54,7 +54,6 @@ def _completions_for_dicts(inference_state, dicts, literal_string, cut_end_quote
for dict_key in sorted(_get_python_keys(dicts), key=lambda x: repr(x)):
dict_key_str = _create_repr_string(literal_string, dict_key)
if dict_key_str.startswith(literal_string):
n = dict_key_str[len(literal_string):-len(cut_end_quote) or None]
name = StringName(inference_state, dict_key_str[:-len(cut_end_quote) or None])
yield Completion(
inference_state,