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
DOC502 gets flagged in function docstrings where the function body has an assert condition, error_msg style, saying that there are no raise statements.
$ python assert_mwe.py
Traceback (most recent call last):
File "/home/user/assert_mwe.py", line 9, in <module>
raises_assert()
File "/home/user/assert_mwe.py", line 7, in raises_assert
assert False, "foo"
AssertionError: foo
And pydoclint complains about the file:
$ pydoclint assert_mwe.py
assert_mwe.py
assert_mwe.py
1: DOC502: Function `raises_assert` has a "Raises" section in the docstring, but there are not "raise" statements in the body
Could the codepath that checks for these support AssertionError when assert is found?
The text was updated successfully, but these errors were encountered:
DOC502 gets flagged in function docstrings where the function body has an
assert condition, error_msg
style, saying that there are noraise
statements.Consider the following file
When ran:
And pydoclint complains about the file:
Could the codepath that checks for these support
AssertionError
whenassert
is found?The text was updated successfully, but these errors were encountered: