diff --git a/fn/func.py b/fn/func.py index b9d7562..c6a202b 100644 --- a/fn/func.py +++ b/fn/func.py @@ -1,5 +1,5 @@ from functools import partial, wraps -from inspect import getargspec +from inspect import getfullargspec from .op import identity, flip @@ -75,7 +75,7 @@ def _curried(*args, **kwargs): count += len(f.args) f = f.func - spec = getargspec(f) + spec = getfullargspec(f) if count == len(spec.args) - len(args): return func(*args, **kwargs)