is_numeric_value
Checks if the provided value is a numeric type (int or float) while explicitly excluding boolean values.
def is_numeric_value(
value: any
) - > boolean
Determines if a given value is a strictly numeric type (integer or float) while excluding boolean values.
Parameters
| Name | Type | Description |
|---|---|---|
| value | any | The input value to be checked for numeric type compatibility. |
Returns
| Type | Description |
|---|---|
boolean | True if the value is an instance of int or float and not a boolean; otherwise, False. |