Using Sphinx extension NumpyDoc, is there some way to automatically make sure that the documentation matches the code it's documenting?
For example, the following documentation does not match the code due to a typo:
def myfunc(apples, bears):
"""
Parameters
----------
apples : int
The number of apples.
beards : int
The number of bears to eat the apples.
"""
Can Sphinx or NumpyDoc make this an error?