colour.utilities.is_numeric#

colour.utilities.is_numeric(a: Any) bool[source]#

Return whether given variable \(a\) is a Real-like variable.

Parameters:

a (Any) – Variable \(a\) to test.

Returns:

Whether variable \(a\) is a Real-like variable.

Return type:

bool

Examples

>>> is_numeric(1)
True
>>> is_numeric((1,))
False