Fix Python 3.11 compatibility
Added Python 3.11 image to test matrix.
Replaced deprecated getargspec
, which was removed in Python 3.11, with inspect.getfullargspec
.
inspect.formatargspec
was also removed.
Copied an implementention from https://github.com/newrelic/newrelic-python-agent using Parameter and Signature.
Fix #1819 (closed)