Skip to content

Commit

Permalink
add float type to statsig event value (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
kat-statsig authored Oct 16, 2024
1 parent f343c57 commit ae944c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statsig/statsig_event.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time
from dataclasses import dataclass, field
from typing import Union, Optional

from dataclasses import dataclass, field
from .statsig_errors import StatsigValueError
from .statsig_user import StatsigUser
from .utils import to_raw_dict_or_none
Expand All @@ -16,7 +16,7 @@ class StatsigEvent:
"""
user: Optional[StatsigUser]
event_name: str
value: Union[str, int, None] = None
value: Union[str, int, float, None] = None
metadata: Optional[dict] = None
statsigMetadata: Optional[dict] = None
_secondary_exposures: Optional[list] = None
Expand Down

0 comments on commit ae944c4

Please sign in to comment.