From a89640fbe3e0bdc44d1eec0e35719e86c16fdcb1 Mon Sep 17 00:00:00 2001 From: Mauko Quiroga Date: Tue, 31 Aug 2021 14:55:44 +0200 Subject: [PATCH] Sort types alphabetically --- openfisca_core/commons/typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openfisca_core/commons/typing.py b/openfisca_core/commons/typing.py index 1cfbdc1206..9cf881724c 100644 --- a/openfisca_core/commons/typing.py +++ b/openfisca_core/commons/typing.py @@ -2,8 +2,8 @@ from nptyping import NDArray as Array -_Types = TypeVar("_Types", float, int, str, bool) -_Array = Union[Array[float], Array[int], Array[str], Array[bool]] +_Types = TypeVar("_Types", bool, float, int, str) +_Array = Union[Array[bool], Array[float], Array[int], Array[str]] ArrayLike = Union[_Array, Sequence[_Types]] """:obj:`.Generic`: Type of any castable to :class:`.ndarray`.