in pbspro/src/pbspro/resource.py [0:0]
def parse(self, expr: str) -> Any:
"""
TRUE, True, true, T, t, Y, y, 1
FALSE, False, false, F, f, N, n, 0
"""
expr = str(expr) # in case an int etc gets passed in
if expr in VALID_TRUE:
return True
if expr in VALID_FALSE:
return False
raise ResourceParsingError(
"Could not parse '{}' as a boolean. Expected one of {} or {}",
expr,
VALID_TRUE,
VALID_FALSE,
)