Se digitar pato em Python, você deve testar a instância?
Você tem uma classe Python que precisa de um teste de igual. O Python deve usar tipagem de pato, mas é melhor (ou mais preciso) incluir ou excluir um teste de instância no eq função? Por exemplo
class Trout(object):
def __init__(self, value):
self.value = value
def __eq__(self, other):
return isinstance(other, Trout) and self.value == other.value