missing-attributes¶
Part of: Enrichment Check
| Check | enrichment |
| Category | required |
| Applies to | classes, modules |
| Since | v1.0.0 |
Class or module has undocumented attributes
What it detects¶
This rule flags classes (dataclasses, NamedTuples, TypedDicts, and classes with __init__ self-assignments) and __init__.py modules that have no Attributes: section in their docstring.
Why is this a problem?¶
Users can't discover object properties or module-level variables without reading the source code. Documentation generators like mkdocstrings render empty attribute tables when the Attributes: section is missing, creating a poor documentation experience for anyone trying to use the class or module.