Should the stdlib provide an API to examine function/class field descriptions in docstrings?

I see how you are approaching this without hitting the “yet-another-standard” problem, by having the consumer specify the docstr parser. But I think it is the core issue here.

I think this has been brought up in the previous thread, as in:

so we really want it to be useful enough for it to be added to the stdlib.

Where should the implementation of NumpyDocstrParser be hosted? I feel that this set of APIs is useful only internally to linters/parsers written in or partially in Python, but it is missing the point of PEP 727 which is to have a standardized format for parameter docstrings.

1 Like