@property
    def has_invalid_return_type(self):
        types = self.operand_types
        obj_dtype_set = frozenset([np.dtype('object')])
        return self.return_type == object and obj_dtype_set - types
dataset/ETHPy150Open pydata/pandas/pandas/computation/ops.py/Op.has_invalid_return_type/swapped operands of `-`