def formatannotation(annotation, base_module=None):
    if isinstance(annotation, type):
        if ('builtins', '__builtin__', base_module) in annotation.__module__:
            return annotation.__name__
        return annotation.__module__+'.'+annotation.__name__
    return repr(annotation)
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/externals/funcsigs.py/formatannotation/swapped operands of `in`