easyargs
easyargs copied to clipboard
inspect.getargspec has been deprecated and eventually deleted in python 3.11+, leading to an error importing this
Updated Python to 3.12 and am not getting this error on import:
File "/home/sveder/.local/lib/python3.12/site-packages/easyargs/decorators.py", line 12, in decorated
parsers.function_parser(f, parser)
File "/home/sveder/.local/lib/python3.12/site-packages/easyargs/parsers.py", line 108, in function_parser
args, varargs, keywords, defaults = inspect.getargspec(function)
^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
See this: https://stackoverflow.com/questions/74585622/pyfirmata-gives-error-module-inspect-has-no-attribute-getargspec
Seems like it might be an easy fix, so will look into adding a PR a bit later.