Commit f77576c
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
- Add pylint disable=unused-import to 'from . import types' in init template
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1ff2c23 commit f77576c
3 files changed
Lines changed: 9 additions & 3 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 & 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: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments