@@ -101,7 +101,7 @@ class SchemaValidator:
101
101
* ,
102
102
strict : bool | None = None ,
103
103
from_attributes : bool | None = None ,
104
- context : ' dict[str, Any] | None' = None ,
104
+ context : dict [str , Any ] | None = None ,
105
105
self_instance : Any | None = None ,
106
106
) -> Any :
107
107
"""
@@ -131,7 +131,7 @@ class SchemaValidator:
131
131
* ,
132
132
strict : bool | None = None ,
133
133
from_attributes : bool | None = None ,
134
- context : ' dict[str, Any] | None' = None ,
134
+ context : dict [str , Any ] | None = None ,
135
135
self_instance : Any | None = None ,
136
136
) -> bool :
137
137
"""
@@ -148,7 +148,7 @@ class SchemaValidator:
148
148
input : str | bytes | bytearray ,
149
149
* ,
150
150
strict : bool | None = None ,
151
- context : ' dict[str, Any] | None' = None ,
151
+ context : dict [str , Any ] | None = None ,
152
152
self_instance : Any | None = None ,
153
153
) -> Any :
154
154
"""
@@ -176,7 +176,7 @@ class SchemaValidator:
176
176
The validated Python object.
177
177
"""
178
178
def validate_strings (
179
- self , input : _StringInput , * , strict : bool | None = None , context : ' dict[str, Any] | None' = None
179
+ self , input : _StringInput , * , strict : bool | None = None , context : dict [str , Any ] | None = None
180
180
) -> Any :
181
181
"""
182
182
Validate a string against the schema and return the validated Python object.
@@ -206,7 +206,7 @@ class SchemaValidator:
206
206
* ,
207
207
strict : bool | None = None ,
208
208
from_attributes : bool | None = None ,
209
- context : ' dict[str, Any] | None' = None ,
209
+ context : dict [str , Any ] | None = None ,
210
210
) -> dict [str , Any ] | tuple [dict [str , Any ], dict [str , Any ] | None , set [str ]]:
211
211
"""
212
212
Validate an assignment to a field on a model.
@@ -278,7 +278,7 @@ class SchemaSerializer:
278
278
round_trip : bool = False ,
279
279
warnings : bool = True ,
280
280
fallback : Callable [[Any ], Any ] | None = None ,
281
- context : ' dict[str, Any] | None' = None ,
281
+ context : dict [str , Any ] | None = None ,
282
282
) -> Any :
283
283
"""
284
284
Serialize/marshal a Python object to a Python object including transforming and filtering data.
@@ -321,7 +321,7 @@ class SchemaSerializer:
321
321
round_trip : bool = False ,
322
322
warnings : bool = True ,
323
323
fallback : Callable [[Any ], Any ] | None = None ,
324
- context : ' dict[str, Any] | None' = None ,
324
+ context : dict [str , Any ] | None = None ,
325
325
) -> bytes :
326
326
"""
327
327
Serialize a Python object to JSON including transforming and filtering data.
@@ -364,7 +364,7 @@ def to_json(
364
364
inf_nan_mode : Literal ['null' , 'constants' ] = 'constants' ,
365
365
serialize_unknown : bool = False ,
366
366
fallback : Callable [[Any ], Any ] | None = None ,
367
- context : ' dict[str, Any] | None' = None ,
367
+ context : dict [str , Any ] | None = None ,
368
368
) -> bytes :
369
369
"""
370
370
Serialize a Python object to JSON including transforming and filtering data.
@@ -428,7 +428,7 @@ def to_jsonable_python(
428
428
inf_nan_mode : Literal ['null' , 'constants' ] = 'constants' ,
429
429
serialize_unknown : bool = False ,
430
430
fallback : Callable [[Any ], Any ] | None = None ,
431
- context : ' dict[str, Any] | None' = None ,
431
+ context : dict [str , Any ] | None = None ,
432
432
) -> Any :
433
433
"""
434
434
Serialize/marshal a Python object to a JSON-serializable Python object including transforming and filtering data.
0 commit comments