Skip to content

Commit 3bf1cdf

Browse files
feat(flagpole): Add to_dict method to EvaluationContext (#72955)
1 parent de3e607 commit 3bf1cdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flagpole/evaluation_context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def has(self, key: str) -> Any:
7373
def size(self) -> int:
7474
return len(self.__data)
7575

76+
def to_dict(self) -> EvaluationContextDict:
77+
return deepcopy(self.__data)
78+
7679

7780
T_CONTEXT_DATA = TypeVar("T_CONTEXT_DATA")
7881

0 commit comments

Comments
 (0)