From b5a0f623a63d49da917b920a0d84a79ab2ec384c Mon Sep 17 00:00:00 2001 From: Charlie Date: Fri, 18 Oct 2024 09:47:11 -0700 Subject: [PATCH] update typing --- querybook/server/lib/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/querybook/server/lib/utils/utils.py b/querybook/server/lib/utils/utils.py index 77bb809c5..d1add40ec 100644 --- a/querybook/server/lib/utils/utils.py +++ b/querybook/server/lib/utils/utils.py @@ -162,7 +162,7 @@ def get_default_args(func): } -def str_to_bool(value: Optional[str | bool]) -> bool: +def str_to_bool(value: Optional[Union[str, bool]]) -> bool: if value is None: return False if isinstance(value, bool):