sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
http://sphinxcontrib-matlabdomain.readthedocs.io/
Other
70 stars 45 forks source link

Python 3.7.1: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly #86

Closed joeced closed 5 years ago

joeced commented 5 years ago

In Python 3.7.1 this warning is emitted. The inspect.formatargspec function is used in MatClassDocumenter.format_args and MatMethodDocumenter.format_args and will be deprecated in Python 3.8. The suggested alternative is to inspect.signature, but that will not work, as we don't have any Python callable. One could extract the relevant code from inspect.py directly.

joeced commented 5 years ago

Fixed in https://github.com/sphinx-contrib/matlabdomain/releases/tag/0.5.0