def isScalar(obj):
    """
    Returns True if an object is a number or complex type, otherwise returns False.

    :rtype: bool"""
    return operator.isNumberType(obj) or not isinstance(obj,complex)

# TODO : this is unneeded as operator provides it, can call directly to operator methods
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arguments.py/isScalar/operator `and` -> `or`