mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-20 07:29:02 +00:00
fix ssz infer type decorator, one None argument too many
This commit is contained in:
parent
e044305457
commit
3cb43fcc27
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user