Skip to content

Commit b5a5018

Browse files
committed
Clean types removed from numpy 2
1 parent 2153edd commit b5a5018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cascade/base/meta_handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def default(self, obj: Any) -> Any:
6868
):
6969
return int(obj)
7070

71-
elif isinstance(obj, (np.float_, np.float16, np.float32, np.float64)): # type: ignore
71+
elif isinstance(obj, (np.float16, np.float32, np.float64)): # type: ignore
7272
return float(obj)
7373

74-
elif isinstance(obj, (np.complex_, np.complex64, np.complex128)): # type: ignore
74+
elif isinstance(obj, (np.complex64, np.complex128)): # type: ignore
7575
return {"real": obj.real, "imag": obj.imag}
7676

7777
elif isinstance(obj, (np.ndarray,)):

0 commit comments

Comments
 (0)