mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 06:38:55 +08:00
Refactor some more typing related things
This commit is contained in:
1 parent
18b6febe86
commit
3cfbedcb69
3 files changed
+14
-19
No files matched your search
@@ -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