fix ssz infer type decorator, one None argument too many

This commit is contained in:
protolambda 2019-06-01 01:49:52 +02:00
parent e044305457
commit 3cb43fcc27
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623

View File

@ -420,10 +420,10 @@ def infer_input_type(fn):
""" """
Decorator to run infer_type on the obj if typ argument is None 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: if typ is None:
typ = infer_type(obj) typ = infer_type(obj)
return fn(obj, *args, typ=typ, **kwargs) return fn(obj, typ=typ, **kwargs)
return infer_helper return infer_helper