mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 15:24:46 +08:00
Fix issues with listing type vars
This commit is contained in:
@@ -376,7 +376,8 @@ class StubClassContext(_StubContextFilterMixin, ClassMixin, ContextWrapper):
|
|||||||
|
|
||||||
def __getattribute__(self, name):
|
def __getattribute__(self, name):
|
||||||
if name in ('py__getitem__', 'py__simple_getitem__', 'py__bases__',
|
if name in ('py__getitem__', 'py__simple_getitem__', 'py__bases__',
|
||||||
'execute_annotation', 'get_stub_only_filter'):
|
'execute_annotation', 'get_stub_only_filter',
|
||||||
|
'list_type_vars', 'define_generics'):
|
||||||
# getitem is always done in the stub class.
|
# getitem is always done in the stub class.
|
||||||
return getattr(self.stub_context, name)
|
return getattr(self.stub_context, name)
|
||||||
return super(StubClassContext, self).__getattribute__(name)
|
return super(StubClassContext, self).__getattribute__(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user