Canonical type checking

This commit is contained in:
Aryaz Eghbali 2024-09-05 13:29:19 +02:00
parent 4df4df2a18
commit a56ac4faa8

View File

@ -24,7 +24,7 @@ def test_toarray() -> None:
def test_with_dtype(dtype: npt.DTypeLike) -> None:
ai = numpy.array(im, dtype=dtype)
assert ai.dtype == dtype
assert ai.dtype.type is dtype
# assert test("1") == ((100, 128), '|b1', 1600))
assert test("L") == ((100, 128), "|u1", 12800)