Commit 6d5af24
committed
fix: narrow scope to Python 3.13+ only
Revert changes to <3.13 stubs to avoid breaking existing code that
assigns as_completed() sync-iter results to Future/Task variables.
The Coroutine type is correct at runtime but too breaking for older versions.
Only 3.13+ gets the fix where _SyncAndAsyncIterator Protocol exists.1 parent f7a9935 commit 6d5af24
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments