Commit 6139e56
authored
docs(bump): correct height_func contract and count default in docstring (#3607)
The height_func Parameters entry described a per-point f(x, y) contract,
but bump() calls height_func(locations) once with a (count, 2) array of
integer (x, y) coordinates and expects a length-count heights array back.
The documented per-point form raises TypeError when used literally.
Also mark count as optional and document its default of
min(width * height // 10, 10_000_000), which was previously unstated.
Docstring-only; no behavior change. Records the doc sweep state for bump.
Refs #36061 parent e75d38a commit 6139e56
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| |||
0 commit comments