1
0
forked from VimPlug/jedi

'fix a couple of error locations'

This commit is contained in:
Matthias Bussonnier
2017-02-23 15:29:23 -08:00
committed by Dave Halter
parent 68c6f8dd03
commit fc27ca1b6a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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