Fix names for typing classes
This commit is contained in:
1 parent
3c3ad7b240
commit
b2c0597a7d
1 file changed
+6
@@ -198,6 +198,12 @@ class TypingContext(_BaseTypingContext):
|
||||
|
||||
|
||||
class TypingClassMixin(ClassMixin):
|
||||
@property
|
||||
def name(self):
|
||||
# In this case the tree_node is already a name and not a real class.
|
||||
# (see typeshed definitions).
|
||||
return ContextName(self, self.tree_node)
|
||||
|
||||
def py__bases__(self):
|
||||
return [LazyKnownContexts(
|
||||
self.evaluator.builtins_module.py__getattribute__('object')
|
||||
|
||||
Reference in new issue
Block a user