stale-signature¶
Part of: Freshness Check
| Check | freshness |
| Category | required |
| Applies to | functions, methods |
| Since | v1.0.0 |
Function signature changed but docstring not updated
What it detects¶
This rule flags functions whose signature (parameters, return type, or decorators) was changed in a git diff but whose docstring was not updated in the same diff. This is the highest-severity freshness finding.
Why is this a problem?¶
A changed signature means the function's calling contract has changed. Callers relying on the documented parameters, types, or return values now have wrong information. This is the most impactful form of docstring staleness because it directly misleads anyone reading the docs.