forked from VimPlug/jedi
'fix a couple of error locations'
This commit is contained in:
committed by
Dave Halter
parent
68c6f8dd03
commit
fc27ca1b6a
@@ -346,7 +346,7 @@ class CompiledObjectFilter(AbstractFilter):
|
||||
|
||||
is_instance = self._is_instance or fake.is_class_instance(obj)
|
||||
# ``dir`` doesn't include the type names.
|
||||
if not inspect.ismodule(obj) and obj != type and not is_instance:
|
||||
if not inspect.ismodule(obj) and (obj is not type) and not is_instance:
|
||||
for filter in create(self._evaluator, type).get_filters():
|
||||
names += filter.values()
|
||||
return names
|
||||
|
||||
Reference in New Issue
Block a user