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
The docstring of this abstract method has a return statement
There is (obviously) no implementation in the abstract method ... and so no return statement
Actual result:
DOC202 Docstring should not have a returns section because the function doesn't return anything
Expected result:
No error
Keywords searched in issues list before creating this issue
DOC202
Code snippet:
importabcclassA(metaclass=abc.abcmeta):
@abc.abstractmethoddeff(self):
"""Lorem ipsum Returns ------- dict: The values """classC(A):
deff(self): # noqa: PLR6301 - this is for demo purposereturn {}
Remarks:
Same result with type annotation given in the abstract method definition (e.g. def f(self) -> dict:)
In terms of implementation, a possibility could be to check if the method is decorated as abstract before doing this test
The text was updated successfully, but these errors were encountered:
Hello,
Context:
Actual result:
DOC202 Docstring should not have a returns section because the function doesn't return anything
Expected result:
No error
Keywords searched in issues list before creating this issue
Code snippet:
Remarks:
def f(self) -> dict:
)The text was updated successfully, but these errors were encountered: