Commit 14b7d6c
fix: resolve CI failures in type checking, lint, and mock API tests
- Add 'List' import to ListType.imports() when property/operation named 'list'
exists (fixes NameError in special-words types.py)
- Use has_non_json_models() for has_models in ModelInitSerializer to avoid
generating 'from . import _models' when _models.py doesn't exist
- Remove 'from . import types' from __init__.py — each TypedDict type's
imports() already handles adding the types import where needed (operations)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1ff2c23 commit 14b7d6c
5 files changed
Lines changed: 10 additions & 17 deletions
File tree
- packages/http-client-python/generator/pygen/codegen
- models
- serializers
- templates
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| |||
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 185 | | |
192 | | - | |
| 186 | + | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
| |||
471 | 465 | | |
472 | 466 | | |
473 | 467 | | |
474 | | - | |
475 | 468 | | |
476 | 469 | | |
477 | 470 | | |
| |||
483 | 476 | | |
484 | 477 | | |
485 | 478 | | |
486 | | - | |
487 | | - | |
488 | 479 | | |
489 | 480 | | |
490 | 481 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
0 commit comments