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 02488be commit 5be77d1Copy full SHA for 5be77d1
openfisca_core/indexed_enums/enum.py
@@ -1,7 +1,7 @@
1
from __future__ import annotations
2
3
import enum
4
-from typing import Any, Union
+from typing import Any, List, Union
5
6
import numpy
7
@@ -227,6 +227,9 @@ def encode(cls, array: A) -> EnumArray:
227
228
"""
229
230
+ conditions: List[ArrayType[bool]]
231
+ choices: List[int]
232
+
233
if isinstance(array, EnumArray):
234
235
return array
openfisca_core/indexed_enums/enum_array.py
@@ -76,6 +76,7 @@ def __new__(
76
) -> EnumArray:
77
"""See comment above."""
78
79
+ obj: EnumArray
80
obj = numpy.asarray(input_array).view(cls)
81
obj.possible_values = possible_values
82
return obj
0 commit comments