Can you please change to:

```python
if not isinstance(other, self.__class__):
```