Skip to content

Commit ae944c4

Browse files
authored
add float type to statsig event value (#355)
1 parent f343c57 commit ae944c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

statsig/statsig_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import time
2+
from dataclasses import dataclass, field
23
from typing import Union, Optional
34

4-
from dataclasses import dataclass, field
55
from .statsig_errors import StatsigValueError
66
from .statsig_user import StatsigUser
77
from .utils import to_raw_dict_or_none
@@ -16,7 +16,7 @@ class StatsigEvent:
1616
"""
1717
user: Optional[StatsigUser]
1818
event_name: str
19-
value: Union[str, int, None] = None
19+
value: Union[str, int, float, None] = None
2020
metadata: Optional[dict] = None
2121
statsigMetadata: Optional[dict] = None
2222
_secondary_exposures: Optional[list] = None

0 commit comments

Comments
 (0)