Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 6847a70

Browse files
authored
handle integers explicitly for better performance (#52)
1 parent 7300f72 commit 6847a70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eppo_client/rules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,6 @@ def to_string(value: AttributeType) -> str:
130130
return "true" if value else "false"
131131
elif isinstance(value, float):
132132
return f"{value:.0f}" if value.is_integer() else str(value)
133+
elif isinstance(value, int):
134+
return str(value)
133135
return json.dumps(value)

0 commit comments

Comments
 (0)