Fix: replace strtobool

This commit is contained in:
shamoon 2025-06-19 09:01:00 -07:00
parent 497fdcaf4e
commit 434b1e3245
No known key found for this signature in database
2 changed files with 12 additions and 5 deletions

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"))