style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2023-02-24 00:58:45 +00:00
parent e89e835110
commit 88f4a48cd8

View File

@ -8,18 +8,18 @@ np = pytest.importorskip("numpy")
SCALAR_TYPES = { SCALAR_TYPES = {
np.bool_: False, np.bool_: False,
np.int8: -7, np.int8: -7,
np.int16: -15, np.int16: -15,
np.int32: -31, np.int32: -31,
np.int64: -63, np.int64: -63,
np.uint8: 9, np.uint8: 9,
np.uint16: 17, np.uint16: 17,
np.uint32: 33, np.uint32: 33,
np.uint64: 65, np.uint64: 65,
np.single: 1.125, np.single: 1.125,
np.double: 1.25, np.double: 1.25,
np.complex64: 1 - 0.125j, np.complex64: 1 - 0.125j,
np.complex128: 1 - 0.25j, np.complex128: 1 - 0.25j,
} }
ALL_TYPES = [int, bool, float, bytes, str] + list(SCALAR_TYPES) ALL_TYPES = [int, bool, float, bytes, str] + list(SCALAR_TYPES)