mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 23:22:01 +00:00
style: pre-commit fixes
This commit is contained in:
parent
affda023ea
commit
8eb33fef6f
@ -6,23 +6,21 @@ from pybind11_tests import numpy_scalars as m
|
|||||||
|
|
||||||
np = pytest.importorskip("numpy")
|
np = pytest.importorskip("numpy")
|
||||||
|
|
||||||
SCALAR_TYPES = dict(
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user