def __eq__(self, other: Any) -> bool:
    'Ensure we collect on equality check.'
    self._collect_state()
    return self._state.__eq__(other)
Ensure we collect on equality check.
def __eq__(self, other: Any) -> bool:
    
    self._collect_state()
    return self._state.__eq__(other)