MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / map_traits_to_engine

Function map_traits_to_engine

api/util/mappers/engine.py:69–73  ·  view source on GitHub ↗
(traits: Iterable["Trait"])

Source from the content-addressed store, hash-verified

67
68
69def map_traits_to_engine(traits: Iterable["Trait"]) -> list[TraitModel]:
70 return [
71 TraitModel(trait_key=trait.trait_key, trait_value=trait.trait_value)
72 for trait in traits
73 ]
74
75
76def map_segment_to_engine(

Callers 1

map_identity_to_engineFunction · 0.85

Calls 1

TraitModelClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…