1
0
forked from VimPlug/jedi

Use create_simple_object for a lot of use cases

This commit is contained in:
Dave Halter
2017-12-02 01:59:48 +01:00
parent 2aa2005502
commit 3c78aad8b1
6 changed files with 15 additions and 6 deletions

View File

@@ -443,7 +443,7 @@ class FakeDict(_FakeArray):
def py__iter__(self):
for key in self._dct:
yield LazyKnownContext(compiled.create(self.evaluator, key))
yield LazyKnownContext(compiled.create_simple_object(self.evaluator, key))
def py__getitem__(self, index):
return self._dct[index].infer()