@@ -72,6 +72,7 @@ def double(value, info):
72
72
'exclude_unset' : False ,
73
73
'exclude_defaults' : False ,
74
74
'exclude_none' : False ,
75
+ 'exclude_computed_fields' : False ,
75
76
'round_trip' : False ,
76
77
'serialize_as_any' : False ,
77
78
}
@@ -85,6 +86,7 @@ def double(value, info):
85
86
'exclude_unset' : False ,
86
87
'exclude_defaults' : False ,
87
88
'exclude_none' : False ,
89
+ 'exclude_computed_fields' : False ,
88
90
'round_trip' : False ,
89
91
'serialize_as_any' : False ,
90
92
}
@@ -97,6 +99,7 @@ def double(value, info):
97
99
'exclude_unset' : False ,
98
100
'exclude_defaults' : False ,
99
101
'exclude_none' : False ,
102
+ 'exclude_computed_fields' : False ,
100
103
'round_trip' : False ,
101
104
'serialize_as_any' : False ,
102
105
}
@@ -109,6 +112,7 @@ def double(value, info):
109
112
'exclude_unset' : True ,
110
113
'exclude_defaults' : False ,
111
114
'exclude_none' : False ,
115
+ 'exclude_computed_fields' : False ,
112
116
'round_trip' : False ,
113
117
'serialize_as_any' : False ,
114
118
}
@@ -123,6 +127,7 @@ def double(value, info):
123
127
'exclude_unset' : False ,
124
128
'exclude_defaults' : False ,
125
129
'exclude_none' : False ,
130
+ 'exclude_computed_fields' : False ,
126
131
'round_trip' : False ,
127
132
'serialize_as_any' : False ,
128
133
}
@@ -136,6 +141,7 @@ def double(value, info):
136
141
'exclude_unset' : False ,
137
142
'exclude_defaults' : False ,
138
143
'exclude_none' : False ,
144
+ 'exclude_computed_fields' : False ,
139
145
'round_trip' : False ,
140
146
'serialize_as_any' : False ,
141
147
}
@@ -231,27 +237,27 @@ def append_args(value, info):
231
237
)
232
238
assert s .to_python (123 ) == (
233
239
"123 info=SerializationInfo(include=None, exclude=None, context=None, mode='python', by_alias=False, exclude_unset=False, "
234
- 'exclude_defaults=False, exclude_none=False, round_trip=False, serialize_as_any=False)'
240
+ 'exclude_defaults=False, exclude_none=False, exclude_computed_fields=False, round_trip=False, serialize_as_any=False)'
235
241
)
236
242
assert s .to_python (123 , mode = 'other' ) == (
237
243
"123 info=SerializationInfo(include=None, exclude=None, context=None, mode='other', by_alias=False, exclude_unset=False, "
238
- 'exclude_defaults=False, exclude_none=False, round_trip=False, serialize_as_any=False)'
244
+ 'exclude_defaults=False, exclude_none=False, exclude_computed_fields=False, round_trip=False, serialize_as_any=False)'
239
245
)
240
246
assert s .to_python (123 , include = {'x' }) == (
241
247
"123 info=SerializationInfo(include={'x'}, exclude=None, context=None, mode='python', by_alias=False, exclude_unset=False, "
242
- 'exclude_defaults=False, exclude_none=False, round_trip=False, serialize_as_any=False)'
248
+ 'exclude_defaults=False, exclude_none=False, exclude_computed_fields=False, round_trip=False, serialize_as_any=False)'
243
249
)
244
250
assert s .to_python (123 , context = 'context' ) == (
245
251
"123 info=SerializationInfo(include=None, exclude=None, context='context', mode='python', by_alias=False, exclude_unset=False, "
246
- 'exclude_defaults=False, exclude_none=False, round_trip=False, serialize_as_any=False)'
252
+ 'exclude_defaults=False, exclude_none=False, exclude_computed_fields=False, round_trip=False, serialize_as_any=False)'
247
253
)
248
254
assert s .to_python (123 , mode = 'json' , exclude = {1 : {2 }}) == (
249
255
"123 info=SerializationInfo(include=None, exclude={1: {2}}, context=None, mode='json', by_alias=False, exclude_unset=False, "
250
- 'exclude_defaults=False, exclude_none=False, round_trip=False, serialize_as_any=False)'
256
+ 'exclude_defaults=False, exclude_none=False, exclude_computed_fields=False, round_trip=False, serialize_as_any=False)'
251
257
)
252
258
assert s .to_json (123 ) == (
253
259
b"\" 123 info=SerializationInfo(include=None, exclude=None, context=None, mode='json', by_alias=False, exclude_unset=False, "
254
- b'exclude_defaults=False, exclude_none=False, round_trip=False, serialize_as_any=False)"'
260
+ b'exclude_defaults=False, exclude_none=False, exclude_computed_fields=False, round_trip=False, serialize_as_any=False)"'
255
261
)
256
262
257
263
0 commit comments