Commit 19cc4e5
committed
ai(rules[AGENTS]) Require Attributes on classes with fields
why: autodoc renders every NamedTuple and dataclass field regardless of
whether it is described, so an undocumented field reaches the API docs
as "Alias for field number 0" or as a bare entry. Seventeen such stubs
are live on the published site today, and nothing in the gates catches
them.
what:
- Require an Attributes section covering every field, with an example
- Note that partial coverage still ships stubs for the rest1 parent e039042 commit 19cc4e5
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
220 | 241 | | |
221 | 242 | | |
222 | 243 | | |
| |||
0 commit comments