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
|
yield filter
|
||||||
else:
|
else:
|
||||||
yield self._create_class_filter(cls, origin_scope, is_instance)
|
yield self._create_class_filter(cls, origin_scope, is_instance)
|
||||||
if not is_instance and self:
|
if not is_instance:
|
||||||
# Return completions of the meta class.
|
|
||||||
from jedi.evaluate.compiled import builtin_from_name
|
from jedi.evaluate.compiled import builtin_from_name
|
||||||
type_ = builtin_from_name(self.evaluator, u'type')
|
type_ = builtin_from_name(self.evaluator, u'type')
|
||||||
|
if type_ != self:
|
||||||
|
# Return completions of the meta class.
|
||||||
yield ClassFilter(
|
yield ClassFilter(
|
||||||
self.evaluator, self, node_context=type_,
|
self.evaluator, self, node_context=type_,
|
||||||
origin_scope=origin_scope,
|
origin_scope=origin_scope,
|
||||||
|
|||||||
Reference in New Issue
Block a user