From 3cb43fcc2742f75cd203050e8ecff3207d297c17 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 1 Jun 2019 01:49:52 +0200 Subject: [PATCH] fix ssz infer type decorator, one None argument too many --- test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py index ed3e16f63..47b4b5c9a 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py @@ -420,10 +420,10 @@ def infer_input_type(fn): """ Decorator to run infer_type on the obj if typ argument is None """ - def infer_helper(obj, *args, typ=None, **kwargs): + def infer_helper(obj, typ=None, **kwargs): if typ is None: typ = infer_type(obj) - return fn(obj, *args, typ=typ, **kwargs) + return fn(obj, typ=typ, **kwargs) return infer_helper