griffe-missing-type¶
Part of: Griffe Check
| Check | griffe |
| Category | recommended |
| Applies to | functions, methods |
| Since | v1.0.0 |
Parameter or return value lacks type annotation in docstring
What it detects¶
This rule flags parameters or return values in docstrings that lack a type annotation. The check uses griffe's Google-style parser to identify entries missing the name (type): description format.
Why is this a problem?¶
mkdocstrings relies on docstring type annotations to render type information in API documentation. Without the parenthesized type, the generated docs lose type context, forcing users to check the source code or type stubs to understand what types a function expects and returns.