Closed Max-Herbold closed 1 year ago
Since we're dropping support for Python 2 (and your unpacking solution requires 3+ anyway), there's no need to attempt the import of getargspec()
. I think we should just import getfullargspec()
and use it directly.
maybe it's more verbose to breakout FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations)
to args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations
rather than args, varargs, varkw, defaults, *_
.
ignore the extra params in
getfullargspec
. This is backwards compatible to <=3.10