$ flake8 --select DAR main.py
main.py:13:1: DAR201 Missing "Returns" in Docstring: - return
main.py:18:1: DAR201 Missing "Returns" in Docstring: - return
$ flake8 --select DAR --strictness full main.py
main.py:13:1: DAR201 Missing "Returns" in Docstring: - return
main.py:18:1: DAR201 Missing "Returns" in Docstring: - return
I would like to see a DAR201 (or new error) for a missing Returns docstring section on methods decorated as @abstractmethod. This is different than #54, as that issue related to not requiring an actual return statement in code, whereas this is strictly about the docstring. I have also checked that missing parameters are reported, as expected (not shown above).
This helps because it will require superclass interfaces to declare what their implementors should return.
I would like to see a DAR201 (or new error) for a missing Returns docstring section on methods decorated as
@abstractmethod
. This is different than #54, as that issue related to not requiring an actualreturn
statement in code, whereas this is strictly about the docstring. I have also checked that missing parameters are reported, as expected (not shown above).This helps because it will require superclass interfaces to declare what their implementors should return.