def METHOD_NAME(wrapped):
    info = venusian.attach(wrapped, callback, category="pyramid")
    # Support use as a class method decorator.
    # Taken from Pyramid's `view_config` decorator implementation.
    if info.scope == "class":  # pylint: disable=no-member
        if settings.get("attr") is None:
            settings["attr"] = wrapped.__name__
    return wrapped