Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In xlwings#55 an equality method was introduced without a corresponding hash method. Hashable objects that implement __eq__ must also implement __hash__ if the type is immutable [1]. Implement hash using the label field which is now a property in order to convey the intent of immutability. Fixes xlwings#58 [1] https://docs.python.org/3/reference/datamodel.html#object.__hash__ Signed-off-by: Cory Todd <cory.todd@canonical.com>
- Loading branch information