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
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
deftest_function(*args: int) ->int:
r"""Test a docstring with variadic arguments. Args: \*args: A list of integers. Returns: int: The first number else 0. """returnargs[0] ifargselse0
and the .darglint file:
[darglint]docstring_style = google
strictness = full
It's because of the backslash. A backslash isn't necessary, because there's no pattern matching or anything; an '' is just an ''. You should be able to change "*args" to "*args" or "args" and it ought to work.
This arose from a conflict between the errors raise by darglint and flake8-rst-docstrings. The above code validates using flake8-rst-docstrings but does not in darglint and removing the backslash then the reverse is true.
With the
test.py
file:and the
.darglint
file:Running
darglint test.py
outputs:The text was updated successfully, but these errors were encountered: