Commit 532ee8f
committed
fix(types): preserve back-compat aliases for renamed inline classes
Registering schemas as named top-level models in openapi.stainless.yaml
moved several previously-inline class definitions to their own files:
TaskAdvancedSettings(Param), FullContentSettingsParam, FindAllCandidate,
FindAllCandidateMetrics, FindAllRunStatus, MatchCondition(Param),
TaskRunSourceStats, TaskRunProgress*Event. The old inline names disappeared
from their original modules, which Stainless's breaking-change detector
flagged as removals.
Add deprecated aliases at the original import paths so user code that
referenced these names continues to work:
- types/run_input.py::AdvancedSettings
- types/run_input_param.py::AdvancedSettings
- types/task_run_create_params.py::AdvancedSettings
- types/advanced_extract_settings_param.py::FullContentFullContentSettings
- types/task_run_events_response.py::TaskRunProgressStatsEventSourceStats
- types/beta/task_run_create_params.py::AdvancedSettings
- types/beta/findall_candidate_match_status_event.py::Data
- types/beta/findall_create_params.py::MatchCondition
- types/beta/findall_run.py::{Status, StatusMetrics}
- types/beta/findall_run_result.py::Candidate
- types/beta/beta_extract_params.py::FullContentFullContentSettings
- types/beta/task_run_events_response.py::TaskRunProgressStatsEventSourceStats
- types/beta/task_group.py (new — re-export GA TaskGroup)
The TS SDK already handles this implicitly via namespace declaration
merging; Python has no equivalent so we add the aliases manually.1 parent e4008e4 commit 532ee8f
13 files changed
Lines changed: 74 additions & 0 deletions
File tree
- src/parallel/types
- beta
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments