pymel.util.arguments.isScalar

isScalar(obj)

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

Return type:bool