forked from VimPlug/jedi
Refactor some more typing related things
This commit is contained in:
@@ -311,7 +311,7 @@ class StubModuleContext(_StubContextFilterMixin, ModuleContext):
|
||||
|
||||
class StubClassContext(_StubContextFilterMixin, ClassContext):
|
||||
def __getattribute__(self, name):
|
||||
if name == ('py__getitem__', 'py__bases__'):
|
||||
if name == ('py__getitem__', 'py__simple_getitem__', 'py__bases__'):
|
||||
# getitem is always done in the stub class.
|
||||
return getattr(self.stub_context, name)
|
||||
return super(StubClassContext, self).__getattribute__(name)
|
||||
|
||||
Reference in New Issue
Block a user