pymel.core.datatypes.isNumeric

isNumeric(obj)

Returns True if an object is a number type, otherwise returns False.

Return type:bool