Closed khusrokarim closed 6 years ago
Currently, probably_missing_eq compares types using isinstance rather than identity. This means that
probably_missing_eq
isinstance
assert item_of_subclass == item_of_class
assert item_of_class == item_of_subcless
Using identity comparison solves all of that.
Currently,
probably_missing_eq
compares types usingisinstance
rather than identity. This means thatassert item_of_subclass == item_of_class
produces a message stating that the items are equal in type;assert item_of_class == item_of_subcless
does not produce a similar message; andUsing identity comparison solves all of that.