Skip to content
Prev Previous commit
Next Next commit
reformatted manage_array file
  • Loading branch information
Chaluvadi committed Mar 5, 2024
commit eef89c05401a9beb19188bcadd0658ee7f9d699c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_scalar(arr: AFArray, dtype: Dtype, /) -> int | float | complex | bool |
out = dtype.c_type()
call_from_clib(get_scalar.__name__, ctypes.pointer(out), arr)
if dtype == c32 or dtype == c64:
return complex(out[0], out[1]) # type: ignore
return complex(out[0], out[1]) # type: ignore
else:
return cast(int | float | complex | bool | None, out.value)

Expand Down