(type_)
return wrap_with_any_of(type_schemas)
Convert the return type annotation into a json schema

    Mostly a wrapper around `python_type_to_json_schemas()`.
Convert the return type annotation into a json schema
Convert the return type annotation into a json schema
def return_type_to_schema(type_):
    """Convert the return type annotation into a json schema

    Mostly a wrapper around `python_type_to_json_schemas()`.
    """
    if type_ is empty:
        return {}

    type_schemas = python_type_to_json_schemas(type_)
    if not type_schemas:
        return {}

    return wrap_with_any_of(type_schemas)
def return_type_to_schema ( type_ ) : if type_ is empty : return { } type_schemas = python_type_to_json_schemas ( type_ ) if not type_schemas : return { } return wrap_with_any_of ( type_schemas )