While checking out the suggested type hints there and comparing to the implementation, I saw that we stick all unhashable discriminants in a list and to equality comparison on them. So I decided to keep things simple and relax the Hashable bound to Any.
At the same time, I saw that the list was not necessary and we could use a Rust Vec. So I simplified the implementation a little.
Closes #925
While checking out the suggested type hints there and comparing to the implementation, I saw that we stick all unhashable discriminants in a list and to equality comparison on them. So I decided to keep things simple and relax the
Hashable
bound toAny
.At the same time, I saw that the list was not necessary and we could use a Rust
Vec
. So I simplified the implementation a little.