Commit 9320d2e
fix: replace vault payload type aliases with proper subclasses
VaultDataUpdatedPayload and VaultMetadataReadPayload were type aliases
(e.g. VaultMetadataReadPayload = VaultDataDeletedPayload), which meant
IDE tooltips and type checkers showed the aliased name instead of the
semantically correct one. Convert them to subclasses with `pass` so they
are distinct types. Also add both to event_model.py's imports and
EventPayload TypeVar for consistency with event.py.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 13262f1 commit 9320d2e
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments