a7a5c10b8a
* add pyclass `hash` option * add newsfragment * require `frozen` option for `hash` * simplify `hash` without `frozen` error message Co-authored-by: David Hewitt <mail@davidhewitt.dev> * require `eq` for `hash` * prevent manual `__hash__` with `#pyo3(hash)` * combine error messages --------- Co-authored-by: David Hewitt <mail@davidhewitt.dev>
94 B
94 B
Added #[pyclass(hash)]
option to implement __hash__
in terms of the Hash
implementation