@@ -1182,7 +1182,7 @@ def default_format(self, evaluation, form) -> str:
11821182 return f"NumericArray[<{ self ._summary_string } >]"
11831183
11841184 @property
1185- def items (self ) -> Tuple :
1185+ def items (self ) -> tuple :
11861186 from mathics .core .convert .python import from_python
11871187 if len (self .value .shape ) == 1 :
11881188 return tuple (from_python (item .item ()) for item in self .value )
@@ -1205,17 +1205,16 @@ def pattern_precedence(self) -> tuple:
12051205 def sameQ (self , rhs ) -> bool :
12061206 return isinstance (rhs , NumericArray ) and numpy .array_equal (self .value , rhs .value )
12071207
1208- def to_sympy (self , ** kwargs ):
1208+ def to_sympy (self , ** kwargs ) -> None :
12091209 return None
12101210
12111211 # TODO: note that this returns a simple python list (of lists),
12121212 # not the numpy array - ok?
12131213 def to_python (self , * args , ** kwargs ) -> list :
12141214 return self .value .tolist ()
12151215
1216- # TODO: what is this? is it right?
12171216 def user_hash (self , update ) -> None :
1218- update (self ._summary [ 2 ] )
1217+ update (self .value . tobytes () )
12191218
12201219
12211220class String (Atom , BoxElementMixin ):
0 commit comments