warg.decorators.kw_passing

The concept “kw passing” implemented here lets one make a contract with the caller that all kwargs with be passed onwards to a receiver, this lets the caller inspect available kwargs of the the receiver function allowing for autocompletion, typing and documentation fetching.

Functions

passes_kws_to(*receiver_funcs[, ...])

A contract decorator, attaching this to a function you explicitly state that kws will be passed onward to a receiver function.

super_init_pass_on_kws([f, super_base, ...])

drop_unused_kws(f)

drop_unused_args(f)

drop_kws(f)

drop_args(f)

drop_args_and_kws(f)

pack_args(f, *[, pack_name, allow_passing, ...])

pack_kws(f, *[, pack_name, allow_passing, ...])

pack_args_and_kws(f, *[, pack_name, ...])

Classes

AlsoDecorator()

Lets you use a function as a decorator too