From 964b11340b3eca6a0df75e3b96869810ab30ca51 Mon Sep 17 00:00:00 2001 From: Leopold80 <78789780+Leopold80@users.noreply.github.com> Date: Wed, 4 May 2022 16:48:19 +0800 Subject: [PATCH] update func.curried() inspect.getargspec() is deprecated since Python 3.0, use inspect.getfullargspec() instead. --- fn/func.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)