@classmethod
def parse_bool(cls, s: str) ->bool:
    """
		Parses a 'true'/'false' string to a bool, ignoring case.
		:raises: XValueError If neither true nor false
		"""
    if isinstance(s, bool):
        return s
    if s.lower() == 'false':
        return False
    if s.lower() == 'true':
        return True
    raise ValueError('{} is not true/false'.format(s))
