griffe-unknown-param¶
Part of: Griffe Check
| Check | griffe |
| Category | required |
| Applies to | functions, methods |
| Since | v1.0.0 |
Docstring documents a parameter not in the function signature
What it detects¶
This rule flags docstrings that document a parameter which does not exist in the function's actual signature. The check uses griffe's Google-style parser to compare documented parameters against the function definition.
Why is this a problem?¶
A documented parameter that doesn't exist in the signature is actively misleading. The parameter may have been renamed or removed during a refactor, leaving stale documentation that confuses callers. This also causes visible rendering errors on mkdocs documentation sites.