feat(native-filters): add temporal support to select filter (#13622)

This commit is contained in:
Ville Brofeldt
2021-03-18 16:15:43 +02:00
committed by GitHub
parent adc247b7e4
commit 13f7e0d755
21 changed files with 391 additions and 60 deletions

View File

@@ -430,6 +430,10 @@ def parse_js_uri_path_item(
def cast_to_num(value: Optional[Union[float, int, str]]) -> Optional[Union[float, int]]:
"""Casts a value to an int/float
>>> cast_to_num('1 ')
1.0
>>> cast_to_num(' 2')
2.0
>>> cast_to_num('5')
5
>>> cast_to_num('5.2')