Commit dded848
fix(core): type coalesced_get as AsyncGenerator
coalesced_get is implemented as an async generator (uses yield) and
callers need access to aclose() to drive its finally block
deterministically. Declaring the return type as AsyncGenerator instead
of AsyncIterator exposes aclose()/asend()/athrow() through the type
system, matches the runtime object, and lets consumers (e.g. the
consumer-break test) avoid type-ignore escape hatches.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6aa6f4b commit dded848
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
0 commit comments