coerce
A function that takes one argument and returns a coerced value. Examples include the built-in int
, float
, bool
and other types. Defaults to an identity function. Note that coercion happens after input validation, so it is possible to coerce to a value not present in choices
.
Please login to continue.