1
0
forked from VimPlug/jedi

Add an exact_key_items method to DictComprehension fixes #1233

This commit is contained in:
Jelte Fennema
2018-10-11 11:39:42 +02:00
committed by Dave Halter
parent bd1010bbd2
commit 3bdb941daa
3 changed files with 31 additions and 0 deletions

View File

@@ -267,6 +267,11 @@ class DictComprehension(ComprehensionMixin, Sequence):
return ContextSet(FakeSequence(self.evaluator, u'list', lazy_contexts))
def exact_key_items(self):
# NOTE: A smarter thing can probably done here to achieve better
# completions, but at least like this jedi doesn't crash
return []
class GeneratorComprehension(ComprehensionMixin, GeneratorBase):
pass