@@ -237,7 +237,7 @@ class SchemaValidator:
237
237
`None` if the schema has no default value, otherwise a [`Some`][pydantic_core.Some] containing the default.
238
238
"""
239
239
240
- _IncEx : TypeAlias = set [int ] | set [str ] | dict [int , _IncEx ] | dict [str , _IncEx ] | None
240
+ _IncEx : TypeAlias = set [int ] | set [str ] | dict [int , _IncEx | bool ] | dict [str , _IncEx | bool ]
241
241
242
242
@final
243
243
class SchemaSerializer :
@@ -260,8 +260,8 @@ class SchemaSerializer:
260
260
value : Any ,
261
261
* ,
262
262
mode : str | None = None ,
263
- include : _IncEx = None ,
264
- exclude : _IncEx = None ,
263
+ include : _IncEx | None = None ,
264
+ exclude : _IncEx | None = None ,
265
265
by_alias : bool = True ,
266
266
exclude_unset : bool = False ,
267
267
exclude_defaults : bool = False ,
@@ -306,8 +306,8 @@ class SchemaSerializer:
306
306
value : Any ,
307
307
* ,
308
308
indent : int | None = None ,
309
- include : _IncEx = None ,
310
- exclude : _IncEx = None ,
309
+ include : _IncEx | None = None ,
310
+ exclude : _IncEx | None = None ,
311
311
by_alias : bool = True ,
312
312
exclude_unset : bool = False ,
313
313
exclude_defaults : bool = False ,
@@ -351,8 +351,8 @@ def to_json(
351
351
value : Any ,
352
352
* ,
353
353
indent : int | None = None ,
354
- include : _IncEx = None ,
355
- exclude : _IncEx = None ,
354
+ include : _IncEx | None = None ,
355
+ exclude : _IncEx | None = None ,
356
356
by_alias : bool = True ,
357
357
exclude_none : bool = False ,
358
358
round_trip : bool = False ,
@@ -426,8 +426,8 @@ def from_json(
426
426
def to_jsonable_python (
427
427
value : Any ,
428
428
* ,
429
- include : _IncEx = None ,
430
- exclude : _IncEx = None ,
429
+ include : _IncEx | None = None ,
430
+ exclude : _IncEx | None = None ,
431
431
by_alias : bool = True ,
432
432
exclude_none : bool = False ,
433
433
round_trip : bool = False ,
0 commit comments