mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix names for typing classes
This commit is contained in:
@@ -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