Skip to content
Myr

Don't arbitrarily strip an argument from make_pass_decorator

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This fixes #786

authored by Eric L Frederich · committed by Stephen Rosen · parent 7463db5 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/decorators.py+1 added-1 removed
59 unmodified lines
60 if obj is None:61 raise RuntimeError('Managed to invoke callback without a '62 'context object of type %r existing'63 % object_type.__name__)64 return ctx.invoke(f, obj, *args[1:], **kwargs)64 return ctx.invoke(f, obj, *args, **kwargs)65 return update_wrapper(new_func, f)66 return decorator6768
243 unmodified lines