I understand your concerns about comparing object of different types. However, bear in mind that the assertion above ensures the equality of the length of the compared objects, not the types. Then, the method above raises a ValidationError when two Record instances with different lengths are given in input, and returns False when you input a Record instance and a list.