@@ -83,13 +83,15 @@ def as_http_params(self) -> Dict[str, str]:
8383 "endDate" : _date_field_to_float (self .end_date ),
8484 }
8585
86- # Ensure all values are strings.
87- result : Dict [str , str ] = {}
86+ # Ensure all values are strings or float
87+ result : Dict [str , Union [ str , float ] ] = {}
8888
8989 # Drop empty values
9090 for key , value in partial_result .items ():
9191 if value :
92- assert isinstance (value , str ), f"Value must be a string: `{ value } `"
92+ assert isinstance (value , str ) or isinstance (
93+ value , float
94+ ), f"Value must be a string or float: `{ value } `"
9395 result [key ] = value
9496
9597 return result
@@ -150,13 +152,15 @@ def as_http_params(self) -> Dict[str, str]:
150152 "endDate" : _date_field_to_float (self .end_date ),
151153 }
152154
153- # Ensure all values are strings.
154- result : Dict [str , str ] = {}
155+ # Ensure all values are strings or float
156+ result : Dict [str , Union [ str , float ] ] = {}
155157
156158 # Drop empty values
157159 for key , value in partial_result .items ():
158160 if value :
159- assert isinstance (value , str ), f"Value must be a string: `{ value } `"
161+ assert isinstance (value , str ) or isinstance (
162+ value , float
163+ ), f"Value must be a string or float: `{ value } `"
160164 result [key ] = value
161165
162166 return result
0 commit comments