Skip to content

Commit 7a7de05

Browse files
author
Mauko Quiroga
committed
Fix wrong return type
1 parent 2f6abdc commit 7a7de05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openfisca_core/indexed_enums/enum_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import numpy
66

7-
from openfisca_core.types import ArrayType
7+
from openfisca_core.types import ArrayLike, ArrayType
88

99
from .. import indexed_enums as enums
1010

@@ -160,7 +160,7 @@ def _forbidden_operation(self, other: Any) -> NoReturn:
160160
__and__ = _forbidden_operation
161161
__or__ = _forbidden_operation
162162

163-
def decode(self) -> ArrayType["enums.Enum"]:
163+
def decode(self) -> ArrayLike[enums.Enum]:
164164
"""Decodes itself to a normal array.
165165
166166
Returns:

0 commit comments

Comments
 (0)