mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Fix names for typing classes
This commit is contained in:
@@ -198,6 +198,12 @@ class TypingContext(_BaseTypingContext):
|
|||||||
|
|
||||||
|
|
||||||
class TypingClassMixin(ClassMixin):
|
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):
|
def py__bases__(self):
|
||||||
return [LazyKnownContexts(
|
return [LazyKnownContexts(
|
||||||
self.evaluator.builtins_module.py__getattribute__('object')
|
self.evaluator.builtins_module.py__getattribute__('object')
|
||||||
|
|||||||
Reference in New Issue
Block a user