Commit a20d15b
committed
✏️ Fix reversion in model_dump attribute handling for pydantic v2.7 .. v2.10
+ The else block added to fix linting errors (4b5ad42) for #1340 was
obliterating the 'context' and 'serialize_as_any' attributes for
versions >= 2.7 and < 2.11.
+ Fix by initializing extra_kwargs and then setting on a per-version level1 parent 39d8c2c commit a20d15b
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | | - | |
| 866 | + | |
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
874 | | - | |
| 873 | + | |
| 874 | + | |
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| 878 | + | |
878 | 879 | | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 880 | + | |
| 881 | + | |
883 | 882 | | |
884 | 883 | | |
885 | | - | |
886 | | - | |
887 | 884 | | |
888 | 885 | | |
889 | 886 | | |
| |||
0 commit comments