-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google style: Allow documenting @property
s as a member
#111
Comments
Just to confirm: in your opinion the ideal behavior for pydoclint should be "if this is a And an optional behavior is: "throw a violation if a Is my understanding correct? |
Sort of. This is a bit beyond this issue in particular, but ideally I think that this, and any other "skip checking" option, I think if a section is included, it should be validated that it is consistent with the code. Not sure if Anyway, besides that detail, yes, what you say is correct. I suggest something like:
Considering interactions with #112 (comment):
And with #110 (comment):
|
I guess this is partially fixed by #115, right? |
Yes, #115 partially fixes this issue. That said, I do not intend to pursue the other suggestions in this issue, because they could make the behaviors for the For |
I'm fine to consider this issue fixed with the changes in #115. This is enough to support google style for this particular case. |
According to the Google style:
For now this can be achieved by using the --skip-checking-short-docstrings but it is not exactly the same, as by using this option
Args
,Raises
and other sections are also not required (not even for non-properties), which an lead to a lot of unintended missing documentation.It would be good to have an option to make
pydoclint
explicitly support this style (omitting theReturns
and theArgs
for setters).As an extra nice feature, an option could be added to check this strictly, i.e. making it an error to have a
Returns
orArgs
in properties.The text was updated successfully, but these errors were encountered: