Commit 98de493b authored by Chris Lamb's avatar Chris Lamb 💬

comparators.utils.specialize: Compare types with identity not equality.

parent 27be3f4c
......@@ -64,6 +64,6 @@ def is_direct_instance(file, cls):
if not isinstance(file, cls):
return False
for c in ComparatorManager().classes:
if c != cls and isinstance(file, c):
if c is not cls and isinstance(file, c):
return False
return True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment