Skip to content

Commit 5c865ce

Browse files
authored
feat: added-trait-model-type (#186)
1 parent cafb3e2 commit 5c865ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flagsmith/api/types.py

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

3+
from flag_engine.engine import ContextValue
34
from flag_engine.segments.types import ConditionOperator, RuleType
45
from typing_extensions import NotRequired
56

@@ -67,3 +68,9 @@ class EnvironmentModel(typing.TypedDict):
6768
identity_overrides: list[IdentityModel]
6869
name: str
6970
project: ProjectModel
71+
72+
73+
class TraitModel(typing.TypedDict):
74+
trait_key: str
75+
trait_value: ContextValue
76+
transient: NotRequired[bool]

0 commit comments

Comments
 (0)