is_bool

is_bool(x)[source]

Return true if x is a boolean value.

Return type:

TypeGuard[bool]