-
Notifications
You must be signed in to change notification settings - Fork 17
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
False positive DOC405 #126
Comments
Hi @ddelange , did you check out the page that's included at the end of the error message: https://jsh9.github.io/pydoclint/notes_generator_vs_iterator.html Do you think what the page says makes sense? |
Hi @jsh9 👋 It should definitely be legal to annotate the above function as From python docs:
|
I just ran into this as well and without a way to disable errors line by line I've had to remove pydoclint from my pre-commit |
What do you think of the following logic?
The purpose of DOC405 is to persuade users to use a Generator when they are actually returning something. And I guess this use case of yours is an edge case. |
sounds good:) typing docs corroborate this approach: since |
@jsh9 I think that sounds good. I actually went back and baselined with the error to get it suppressed so I'm actually good, but would love to get rid of the baseline! |
The fix is published in version 0.5.19. |
Hi 👋
The following throws a
false positive. Interestingly, when I remove the
Args
section from the docstring, the false positive is no longer thrown.The text was updated successfully, but these errors were encountered: