1
0
forked from VimPlug/jedi

Re-enable AttributeError/NameError detection for more complicated occurances than just statements.

This commit is contained in:
Dave Halter
2014-12-11 19:18:00 +01:00
parent 77fdbac234
commit d11ea73ef4
6 changed files with 65 additions and 16 deletions

View File

@@ -159,7 +159,7 @@ class CompiledObject(Base):
else:
raise KeyError("CompiledObject doesn't have an attribute '%s'." % name)
def get_index_types(self, evaluator, index_array):
def get_index_types(self, evaluator, index_array=()):
# If the object doesn't have `__getitem__`, just raise the
# AttributeError.
if not hasattr(self.obj, '__getitem__'):