validate_add
No overview available.
def validate_add(
a: number,
b: number
) - > number
Validates that two inputs are numeric and returns their sum. This function ensures type safety before performing addition, raising a TypeError if either input is not an integer or a float.
Parameters
| Name | Type | Description |
|---|---|---|
| a | number | The first numeric value to be validated and added. |
| b | number | The second numeric value to be validated and added. |
Returns
| Type | Description |
|---|---|
number | The arithmetic sum of the two provided numeric values. |