Commit ab94e2b
committed
gh-149050: Also fix the Mapping Protocol Access wording
The Mapping Protocol Access bullet about parser.items() in
Doc/library/configparser.rst had the same misleading 'returns a list of
section_name, section_proxy pairs' phrasing as the items() method
description. The no-argument call actually returns an ItemsView, while
the call with a section argument returns a list. Mark up both return
types explicitly so that the asymmetry between the two overloads is
clear to readers.1 parent 63dd638 commit ab94e2b
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
498 | 499 | | |
499 | 500 | | |
500 | 501 | | |
| |||
0 commit comments