Repository navigation
Commit 5b0e9fd
committed
docs(foundation): type the verbose callback's result as Any (#1839)
- Type `VerboseHandler`'s return as `Any` rather than `object`, per the
owner's preference on #1867: every caller discards the result, and `Any`
accepts any two-argument callback, whatever it returns.
- Rewrite the NOTE above the alias to give that reason.
- Pin `Any` in the signature test; the exact comparison still fails on a
return of `None` or `object`.
Refs #18391 parent 817208c commit 5b0e9fd
2 files changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments