azureml/services.py
def types(**args):
    """Specifies the types used for the arguments of a published service.

@types(a=int, b = str)
def f(a, b):
    pass
"""
    def l(func):
        if hasattr(func, '__annotations__'):
            func.__annotations__.update(args)
        else:
            func.__annotations__ = args
        return func
    return l
def types(**args):
    def l(func):
        if hasattr(func, '__annotations__'):
            func.__annotations__.update(args)
        else:
            func.__annotations__ = args
        return func
    return l
def types ( * * args ) : def l ( func ) : if hasattr ( func , '__annotations__' ) : func . __annotations__ . update ( args ) else : func . __annotations__ = args return func return l
Specifies the types used for the arguments of a published service.

@types(a=int, b = str)
def f(a, b):
    pass
Specifies the types used for the arguments of a published service .