parse_int

parse_int(value)[source]

Parses integer input values.

Parameters:

value (int) – The input value.

Returns:

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

Return type:

int

Raises:

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