Commit a87f8c5
Julian Vanden Broeck
Match return type of SerializationInfo.mode() to mode of model_dump()
Pydantic in some place use Literal['python', 'json'] | str the
serialization mode, using a more restrictive type can break stuff (e.g.
typing validation). So this commit adapt the return type to make it
matches with other pydantic valid serialization mode.1 parent 04b296b commit a87f8c5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments