We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6abdc commit 7a7de05Copy full SHA for 7a7de05
openfisca_core/indexed_enums/enum_array.py
@@ -4,7 +4,7 @@
4
5
import numpy
6
7
-from openfisca_core.types import ArrayType
+from openfisca_core.types import ArrayLike, ArrayType
8
9
from .. import indexed_enums as enums
10
@@ -160,7 +160,7 @@ def _forbidden_operation(self, other: Any) -> NoReturn:
160
__and__ = _forbidden_operation
161
__or__ = _forbidden_operation
162
163
- def decode(self) -> ArrayType["enums.Enum"]:
+ def decode(self) -> ArrayLike[enums.Enum]:
164
"""Decodes itself to a normal array.
165
166
Returns:
0 commit comments