File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -877,8 +877,8 @@ def __contains__(self, key):
877
877
# TODO: ideally, _to_tick shouldn't be necessary, the __hash__ and __eq__ of Group should include this
878
878
return _to_tick (key ) in self ._mapping
879
879
880
- def __hash__ ( self ):
881
- return id ( self )
880
+ # use the default hash. We have to specify it explicitly because we define __eq__
881
+ __hash__ = object . __hash__
882
882
883
883
def _is_key_type_compatible (self , key ):
884
884
key_kind = np .dtype (type (key )).kind
@@ -3643,9 +3643,9 @@ def evaluate(self, context):
3643
3643
"""
3644
3644
return context [self .name ]
3645
3645
3646
- # needed because ExprNode.__hash__ (which is object.__hash__) takes precedence over Axis.__hash__
3647
- def __hash__ ( self ):
3648
- return id ( self )
3646
+ # Use the default hash. We have to specify it explicitly because we define __eq__ via ExprNode and
3647
+ # ExprNode. __hash__ (which is not set explicitly) takes precedence over Axis.__hash__
3648
+ __hash__ = object . __hash__
3649
3649
3650
3650
3651
3651
class AxisReferenceFactory (object ):
You can’t perform that action at this time.
0 commit comments