1
0
forked from VimPlug/jedi

Fix some more dict tests

This commit is contained in:
Dave Halter
2019-12-30 00:29:55 +01:00
parent c7296ade68
commit 7e769b87f3
5 changed files with 91 additions and 37 deletions

View File

@@ -354,6 +354,9 @@ class TreeInstance(_BaseTreeInstance):
def get_annotated_class_object(self):
return self._get_annotated_class_object() or self.class_value
def get_key_values(self):
return NO_VALUES
def py__simple_getitem__(self, index):
if self.array_type == 'dict':
# Logic for dict({'foo': bar}) and dict(foo=bar)