Skip to content

Commit 2110e52

Browse files
committed
update trait type
1 parent f91c8fc commit 2110e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flag_engine/context/types.py

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

55
from __future__ import annotations
66

7-
from typing import Any, Dict, List, Optional, TypedDict, Union
7+
from typing import Any, Dict, List, Optional, TypedDict
88

99
from typing_extensions import NotRequired
1010

11-
from flag_engine.segments.types import ConditionOperator, RuleType
11+
from flag_engine.segments.types import ConditionOperator, ContextValue, RuleType
1212

1313

1414
class EnvironmentContext(TypedDict):
@@ -24,7 +24,7 @@ class FeatureValue(TypedDict):
2424
class IdentityContext(TypedDict):
2525
identifier: str
2626
key: str
27-
traits: NotRequired[Dict[str, Optional[Union[str, float, bool]]]]
27+
traits: NotRequired[Dict[str, ContextValue]]
2828

2929

3030
class SegmentCondition(TypedDict):

0 commit comments

Comments
 (0)