Commit f150e09
committed
Return Type Fixes for Valueless Config Entries
The `get_multivar` method accepts any key name — there is no
multivar marker in the git config format. A valueless key can
therefore appear among multivar results, so `__next__` on
`ConfigMultivarIterator` returns `str | None`. Valueless keys
are also returned as `None` by `__getitem__`.1 parent a667f1f commit f150e09
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments