Skip to content

Commit fdc89d6

Browse files
committed
fix typing
1 parent 313f500 commit fdc89d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import typing
22

33
import pytest
4-
from flag_engine.result.types import FlagResult
54

65
from flagsmith.models import Flag, Flags
76
from flagsmith.types import SDKEvaluationResult, SDKFlagResult
@@ -140,7 +139,7 @@ def test_flag_from_evaluation_result_value_types(
140139
value: typing.Any, expected: typing.Any
141140
) -> None:
142141
# Given
143-
flag_result: FlagResult = {
142+
flag_result: SDKFlagResult = {
144143
"enabled": True,
145144
"feature_key": "123",
146145
"name": "test_feature",
@@ -150,7 +149,8 @@ def test_flag_from_evaluation_result_value_types(
150149
}
151150

152151
# When
153-
flag: Flag = Flag.from_evaluation_result(flag_result)
152+
flag: typing.Optional[Flag] = Flag.from_evaluation_result(flag_result)
154153

155154
# Then
155+
assert flag
156156
assert flag.value == expected

0 commit comments

Comments
 (0)