mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
chore: add talisman env var to config (#24774)
(cherry picked from commit d23b20ea75)
This commit is contained in:
committed by
Michael S. Molina
parent
b272814ff5
commit
e46f10a8a6
@@ -439,6 +439,8 @@ def cast_to_boolean(value: Any) -> bool | None:
|
||||
"""
|
||||
if value is None:
|
||||
return None
|
||||
if isinstance(value, bool):
|
||||
return value
|
||||
if isinstance(value, (int, float)):
|
||||
return value != 0
|
||||
if isinstance(value, str):
|
||||
|
||||
Reference in New Issue
Block a user