from_bool#

static Parse.from_bool(value: bool) int[source]#

Convert a boolean value to a integer value.

Parameters:

value (bool) – A boolean value.

Returns:

Integer value.

Return type:

int