Fix: replace strtobool

This commit is contained in:
shamoon committed 2025-06-19 09:02:10 -07:00
1 parent 497fdcaf4e
commit 434b1e3245
2 files changed
+12 -5

No files matched your search

+7
View File
@@ -121,3 +121,10 @@ def run_subprocess(
completed_proc.check_returncode()
return completed_proc
def get_boolean(boolstr: str) -> bool:
"""
Return a boolean value from a string representation.
"""
return bool(boolstr.lower() in ("yes", "y", "1", "t", "true"))