Commit be65195
committed
docs: fix remaining stale repr()/slice examples missing maiden
Six repr() examples in customize.rst (Hon Solo x2, dean title x3, the
suffix-attribute-list example) never got the maiden: '' line every
real HumanName.__repr__() now emits -- these predate the maiden field
and are unrelated to the nickname-delimiter sections this feature
actually touched, so they were missed. Also fixes usage.rst's
name[1:-2] slice example, which needed to become name[1:-3] once
_members grew by one (the corresponding test_python_api.py::test_slice
update was already made in this branch; the doc example was not).
Verified via sphinx-build -b doctest: total failure count across docs/
drops from 21 (after the earlier usage.rst-only fix) to 15, with no
remaining maiden-related mismatches. The rest are pre-existing
cross-example CONSTANTS state leaks already documented in AGENTS.md's
doctest gotcha, unrelated to this change.
Found by review agents auditing PR #199.1 parent 7b14aa9 commit be65195
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| 344 | + | |
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
| |||
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
| 385 | + | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| |||
407 | 410 | | |
408 | 411 | | |
409 | 412 | | |
| 413 | + | |
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
| |||
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| 441 | + | |
437 | 442 | | |
438 | 443 | | |
439 | 444 | | |
| |||
505 | 510 | | |
506 | 511 | | |
507 | 512 | | |
| 513 | + | |
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments