Skip to content

Commit 5be77d1

Browse files
author
Mauko Quiroga
committed
Add missing variable types
1 parent 02488be commit 5be77d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

openfisca_core/indexed_enums/enum.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import enum
4-
from typing import Any, Union
4+
from typing import Any, List, Union
55

66
import numpy
77

@@ -227,6 +227,9 @@ def encode(cls, array: A) -> EnumArray:
227227
228228
"""
229229

230+
conditions: List[ArrayType[bool]]
231+
choices: List[int]
232+
230233
if isinstance(array, EnumArray):
231234

232235
return array

openfisca_core/indexed_enums/enum_array.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def __new__(
7676
) -> EnumArray:
7777
"""See comment above."""
7878

79+
obj: EnumArray
7980
obj = numpy.asarray(input_array).view(cls)
8081
obj.possible_values = possible_values
8182
return obj

0 commit comments

Comments
 (0)