Support keyword args and yields sections#331
Conversation
|
CI needs #330 to pass. |
|
Actually... I don't understand the purpose behind a "keyword args" section. The descriptions of all parameters can be within one section, why should they be separated? |
|
The purpose of the Keyword Argument section is to be able to document arguments that can be passed through Consider this: def function(a, b, **kwargs):
c = kwargs.pop("c")
d = kwargs.pop("d")
# use a, b, c, dYou can document |
|
Wait, I thought that Python has eliminated all cases where you'd have to rely on def function(a, b, *, c, d): |
|
You have good arguments as always @oprypin 🙂 |
|
Well, if supporting this never pops up in any way except when people write BTW they could instead describe |
Yes that's what I initially replied in the original issue, #205.
Oh no, it's only rendered when a "Keyword arguments" section is found indeed.
Agreed. Then I'll totally revise what I said earlier, and change the new section title to "Keyword parameters". Maybe "Other parameters", from Numpydoc, would be even more appropriate. |
6969140 to
65e328d
Compare
|
OK! Now no issue from my side. |
|
Thank you 🙂 |
|
Failures came from a precedent version of PDM which fixed the KeyError issue. |
Closes #324 and #205