'fix a couple of error locations'
This commit is contained in:
1 parent
68c6f8dd03
commit
fc27ca1b6a
2 files changed
+3
-3
No files matched your search
@@ -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