From 09ea9afe60dcd9fbaa35b9962a0ace3b2a462b1a Mon Sep 17 00:00:00 2001 From: Farukh Tamboli Date: Fri, 22 May 2020 07:20:12 -0400 Subject: [PATCH] Fix unsupported function call inspect.getargspec Call to inspect.getargspec throwing following error message: ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them. As suggested in the error message, changing the call to inspect.getfullargspec. --- odo/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odo/utils.py b/odo/utils.py index 51a9b430..43be7a94 100644 --- a/odo/utils.py +++ b/odo/utils.py @@ -127,7 +127,7 @@ def keywords(func): """ if isinstance(func, type): return keywords(func.__init__) - return inspect.getargspec(func).args + return inspect.getfullargspec(func).args def cls_name(cls):