Commit 7868053
feat(deps-dev): bump @seamapi/types from 1.910.0 to 1.963.0 in the se… (#582)
* feat(deps-dev): bump @seamapi/types from 1.910.0 to 1.963.0 in the seam group
* Fix lockfile
* fix(codegen): escape Python keyword property names in models
@seamapi/types 1.963.0 adds a "from" property to SeamEvent. "from" is a
Python hard keyword, so the generated dataclass field and from_dict keyword
argument produced invalid Python and `make format` failed during the
Generate code job.
Sanitize property names that collide with Python hard keywords by suffixing
the identifier with an underscore (e.g. `from` -> `from_`) while preserving
the original name as the dict key in from_dict. No existing property name is
a hard keyword, so all other generated output is unchanged.
Regenerate models and routes against @seamapi/types 1.963.0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SZXq8XXHtqU379agmLxk5u
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent b768d1d commit 7868053
8 files changed
Lines changed: 97 additions & 15 deletions
File tree
- codegen
- layouts/partials
- lib/layouts
- seam/routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
14 | 60 | | |
15 | 61 | | |
16 | 62 | | |
17 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
18 | 69 | | |
19 | 70 | | |
20 | 71 | | |
| |||
55 | 106 | | |
56 | 107 | | |
57 | 108 | | |
| 109 | + | |
58 | 110 | | |
59 | 111 | | |
60 | 112 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments