|
1 | 1 | import logging |
2 | 2 | import time |
3 | 3 |
|
4 | | -from typing import Any, Optional, Union, List |
| 4 | +from typing import Any, Optional, Union, List, Mapping, Sequence |
5 | 5 |
|
6 | 6 | from devcycle_python_sdk import AbstractDevCycleClient |
7 | 7 | from devcycle_python_sdk.models.user import DevCycleUser |
8 | 8 |
|
9 | 9 | from openfeature.provider import AbstractProvider |
10 | 10 | from openfeature.provider.metadata import Metadata |
11 | 11 | from openfeature.evaluation_context import EvaluationContext |
12 | | -from openfeature.flag_evaluation import FlagResolutionDetails, Reason |
| 12 | +from openfeature.flag_evaluation import FlagResolutionDetails, Reason, FlagValueType |
13 | 13 | from openfeature.exception import ( |
14 | 14 | ErrorCode, |
15 | 15 | InvalidContextError, |
@@ -138,9 +138,9 @@ def resolve_float_details( |
138 | 138 | def resolve_object_details( |
139 | 139 | self, |
140 | 140 | flag_key: str, |
141 | | - default_value: Union[dict, list], |
| 141 | + default_value: Union[Mapping[str, FlagValueType], Sequence[FlagValueType]], |
142 | 142 | evaluation_context: Optional[EvaluationContext] = None, |
143 | | - ) -> FlagResolutionDetails[Union[dict, list]]: |
| 143 | + ) -> FlagResolutionDetails[Union[Mapping[str, FlagValueType], Sequence[FlagValueType]]]: |
144 | 144 | if not isinstance(default_value, dict): |
145 | 145 | raise TypeMismatchError("Default value must be a flat dictionary") |
146 | 146 |
|
|
0 commit comments