-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Hello,
Thank you for maintaining the great tool pydoclint!
We were about to merge 0.5.7 to our project, but it seems as though the newly added rule DOC503 results in some false positives.
Let me try to give a minimal example:
class CredentialsValidationError(Exception):
pass
This exception-definition is located in a file called exceptions.py
Then another file imports the entire exceptions.py
and uses the CredentialsValidationError
-exception from this file
import exceptions
def foo():
"""Bar.
Raises:
exceptions.CredentialsValidationError: An exception
"""
raise exceptions.CredentialsValidationError
This results in a DOC503-error with the message
DOC503: Function `foo` exceptions in the "Raises" section in the docstring do not match those in the function body Raises values in the docstring: ['exceptions.CredentialsValidationError']. Raised exceptions in the body: ['exceptions'].
Is this intended behaviour? Is there somthing here I dont understand?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels