1
0
Fork 0

fix type check

This commit is contained in:
Sean Sube 2023-09-11 20:47:03 -05:00
parent cf2cf51b17
commit fd8b9bef3b
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def is_debug() -> bool:
def get_boolean(args: Any, key: str, default_value: bool) -> bool:
val = args.get(key, str(default_value))
if type(val) == bool:
if isinstance(val, bool):
return val
return val.lower() in ("1", "t", "true", "y", "yes")