redundant-docstring
Function or plain-method docstring only repeats its declaration.
Why
Restating a clear name and signature creates maintenance work without helping callers.
Fix
Remove the restatement after confirming __doc__ is not an external contract. Clarify author-controlled names or types, and keep prose that documents constraints, side effects, or failure modes.
Examples
def update_message(message_id: str): """Update the message.""" return Nonedef update_message(message_id: str): """Replace any existing draft atomically.""" return NoneFormerly: function-docstring-restates-declaration