Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions flagsmith/api/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import typing

from flag_engine.identities.traits.types import ContextValue
from flag_engine.segments.types import ConditionOperator, RuleType
from typing_extensions import NotRequired

Expand Down Expand Up @@ -67,3 +68,9 @@ class EnvironmentModel(typing.TypedDict):
identity_overrides: list[IdentityModel]
name: str
project: ProjectModel


class TraitModel(typing.TypedDict):
trait_key: str
trait_value: ContextValue
transient: NotRequired[bool]
Loading