Skip to content

Commit

Permalink
Fix numpy 2.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Jul 1, 2024
1 parent 003bf7f commit 8c0e822
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions singlestoredb/functions/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@
np.uint8: 'uint8',
np.longlong: 'uint64',
np.ulonglong: 'uint64',
np.unicode_: 'str',
np.str_: 'str',
np.bytes_: 'bytes',
np.float_: 'float64',
np.float64: 'float64',
np.float32: 'float32',
np.float16: 'float16',
np.double: 'float64',
}
if hasattr(np, 'unicode_'):
numpy_type_map[np.unicode_] = 'str'
if hasattr(np, 'float_'):
numpy_type_map[np.float_] = 'float64'
else:
array_types = (Sequence,)
numpy_type_map = {}
Expand Down

0 comments on commit 8c0e822

Please sign in to comment.