Skip to contents

Attach pretty metadata to a decorated function.

Usage

prettify(f, original, decorator_calls)

Arguments

f

The wrapped function.

original

The original unwrapped function.

decorator_calls

List of decorator call expressions.

Value

The function f with class "decorated" and metadata attributes.