We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cafb3e2 commit 5c865ceCopy full SHA for 5c865ce
flagsmith/api/types.py
@@ -1,5 +1,6 @@
1
import typing
2
3
+from flag_engine.engine import ContextValue
4
from flag_engine.segments.types import ConditionOperator, RuleType
5
from typing_extensions import NotRequired
6
@@ -67,3 +68,9 @@ class EnvironmentModel(typing.TypedDict):
67
68
identity_overrides: list[IdentityModel]
69
name: str
70
project: ProjectModel
71
+
72
73
+class TraitModel(typing.TypedDict):
74
+ trait_key: str
75
+ trait_value: ContextValue
76
+ transient: NotRequired[bool]
0 commit comments