You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's fix some docstrings in metadata.py: some of them document internal details or just repeat the name of the attribute/argument in a way that's not useful for reader:
Assume reader is not going to read the source code
If it's not obvious, explain what argument/attribute is for -- why is it exposed in API?
I'd like to get at least this common line fixed:
unrecognized fields: Dictionary of all unrecognized fields.
This does not explain what they are or why they are exposed in the API.
Some related thoughts with regards to consistency of docs that might be addressed here:
Don't use different aliases for the same docs section, e.g. "Args" vs. "Arguments"
Quote (' vs. " vs. ``) or don't quote all proper names, e.g. args, return values, class names, etc.
Start all args/raises/returns oneliners with definite, indefinite or no article.
As @jku says, don't state the obvious, more specifically reduce redundancy in variable names, typing information, method summary and args/raises/returns descriptions.
Further improvements are a good idea but I think I'd like to close this issue -- or alternatively remove the blocker label: I think the docs look good enough for a release 🤷 ?
Activity
lukpueh commentedon Oct 14, 2021
Some related thoughts with regards to consistency of docs that might be addressed here:
'vs."vs.``) or don't quote all proper names, e.g. args, return values, class names, etc.lukpueh commentedon Oct 20, 2021
Just saw that @jku already has a ticket for this. I say we try standardise to double backtick and see if it looks good in source code and on RTD.
Metadata API Docstring Overhaul (API)
Improve docstrings language in Metadata API
ivanayov commentedon Feb 8, 2022
Arguments left to explain after #1815:
and some still questionable:
plus clarify
json/dict representationImprove docstrings in Metadata API to be more descritpive
jku commentedon Feb 9, 2022
Further improvements are a good idea but I think I'd like to close this issue -- or alternatively remove the blocker label: I think the docs look good enough for a release 🤷 ?
Improve docstrings in Metadata API to be more descritpive
Improve docstrings in Metadata API to be more descritpive
Dimitrovr/test permissions (#14)