Commit dc6119f
committed
fix: re-export TaskGroup from parallel.types.beta and silence reportDeprecated
Two related fixes for the breaking-change detector against the pre-0.6.0
baseline:
* The new `parallel/types/beta/task_group.py` shim wasn't re-exported from
`parallel/types/beta/__init__.py`, so baseline tests doing
`from parallel.types.beta import TaskGroup` failed pyright. Add the
re-export.
* The `beta.taskgroup` resource is now `@deprecated` (we recommend GA),
but baseline tests don't have a `# pyright: reportDeprecated=false`
marker. Promote the per-file marker to project level — deprecation is a
runtime concern, not a type error.1 parent f63ad0a commit dc6119f
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments