mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-27 07:32:02 +00:00
style: pre-commit fixes
This commit is contained in:
parent
e89e835110
commit
88f4a48cd8
@ -8,18 +8,18 @@ np = pytest.importorskip("numpy")
|
||||
|
||||
SCALAR_TYPES = {
|
||||
np.bool_: False,
|
||||
np.int8: -7,
|
||||
np.int16: -15,
|
||||
np.int32: -31,
|
||||
np.int64: -63,
|
||||
np.uint8: 9,
|
||||
np.uint16: 17,
|
||||
np.uint32: 33,
|
||||
np.uint64: 65,
|
||||
np.single: 1.125,
|
||||
np.double: 1.25,
|
||||
np.complex64: 1 - 0.125j,
|
||||
np.complex128: 1 - 0.25j,
|
||||
np.int8: -7,
|
||||
np.int16: -15,
|
||||
np.int32: -31,
|
||||
np.int64: -63,
|
||||
np.uint8: 9,
|
||||
np.uint16: 17,
|
||||
np.uint32: 33,
|
||||
np.uint64: 65,
|
||||
np.single: 1.125,
|
||||
np.double: 1.25,
|
||||
np.complex64: 1 - 0.125j,
|
||||
np.complex128: 1 - 0.25j,
|
||||
}
|
||||
ALL_TYPES = [int, bool, float, bytes, str] + list(SCALAR_TYPES)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user