numpy / numpydoc

Numpy's Sphinx extensions
https://numpydoc.readthedocs.io/
Other
305 stars 161 forks source link

In linter, ignore @overload functions #562

Open stefanv opened 6 months ago

stefanv commented 6 months ago

See #559

This PR makes the linter behave correctly, but not the validator.

The piece I am missing is figuring out how, without the AST, to see whether we are dealing with the @overload function definition, or the "real" function definition.

This is easy in the linter, as we can get decorator information from the AST.

Is it OK to have some functionality work only in the linter @rossbar?