mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Fix a small oversight about type
This commit is contained in:
@@ -224,10 +224,11 @@ class ClassMixin(object):
|
||||
yield filter
|
||||
else:
|
||||
yield self._create_class_filter(cls, origin_scope, is_instance)
|
||||
if not is_instance and self:
|
||||
# Return completions of the meta class.
|
||||
if not is_instance:
|
||||
from jedi.evaluate.compiled import builtin_from_name
|
||||
type_ = builtin_from_name(self.evaluator, u'type')
|
||||
if type_ != self:
|
||||
# Return completions of the meta class.
|
||||
yield ClassFilter(
|
||||
self.evaluator, self, node_context=type_,
|
||||
origin_scope=origin_scope,
|
||||
|
||||
Reference in New Issue
Block a user