OK, it likely has to do with the nonstandard `__eq__` defined on this object.  This change is probably correct, unless intervals are mutable (I don't think they are but @catchmrbharath can verify).