parse_bool

parse_bool(value)[source]

Parses boolean input values.

Parameters:

value (bool) – The input value.

Returns:

The input value. Works as an identity function for valid input.

Return type:

bool

Raises:

ValueError – If the input is not explicitly of boolean type.