Commit e38008c
Fix UnboundLocalError in generate_gate when generator yields nothing
Initialize x before the loop to prevent UnboundLocalError if
generate_stream_gate yields no items.
Fixes #3786
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 587d5cf commit e38008c
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments