Adding __hash__ for forward compatibility with pybind11 update.
Backward compatible. Relevant pybind11 change: https://github.com/pybind/pybind11/pull/2291 Note: This pybind11 change makes pybind11 compatible with native Python behavior: * https://docs.python.org/3/reference/datamodel.html#object.__hash__ * A class that overrides __eq__() and does not define __hash__() will have its __hash__() implicitly set to None. PiperOrigin-RevId: 327879230 Change-Id: I8573b761ec94e8889b4eb5ac30a71ee0314e6578
Showing
想要评论请 注册 或 登录