SUM: Fixed a variadic method bug. FIX: Forgot to add `*args` to variadic method.
1 files changed, 2 insertions(+), 2 deletions(-) M gf/base.py
M gf/base.py +2 -2
@@ 407,14 407,14 @@ def method(*args): return helper -def variadic_method(): +def variadic_method(*args): """Automatically call the `variadic_method´ method of a generic function. This function is intended to be used as a decorator. """ def helper(function): - return find_generic(function).variadic_method()(function) + return find_generic(function).variadic_method(*args)(function) return helper