File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ def __init__(self) -> None:
228
228
super ().__init__ (* DefaultPayloadConverter .default_encoding_payload_converters )
229
229
230
230
231
- class BinaryNullPayloadConverter (EncodingPayloadConverter ):
232
- """Converter for 'binary/null ' payloads supporting None values."""
231
+ class UnsetPayloadConverter (EncodingPayloadConverter ):
232
+ """Converter for 'unset ' payloads supporting None values."""
233
233
234
234
@property
235
235
def encoding (self ) -> Union [str , Unset ]:
@@ -253,6 +253,15 @@ def from_payload(
253
253
return None
254
254
255
255
256
+ class BinaryNullPayloadConverter (UnsetPayloadConverter ):
257
+ """Converter for 'binary/null' payloads supporting None values."""
258
+
259
+ @property
260
+ def encoding (self ) -> Union [str , Unset ]:
261
+ """See base class."""
262
+ return "binary/null"
263
+
264
+
256
265
class BinaryPlainPayloadConverter (EncodingPayloadConverter ):
257
266
"""Converter for 'binary/plain' payloads supporting bytes values."""
258
267
@@ -533,6 +542,7 @@ def decode(
533
542
534
543
535
544
DefaultPayloadConverter .default_encoding_payload_converters = (
545
+ UnsetPayloadConverter (),
536
546
BinaryNullPayloadConverter (),
537
547
BinaryPlainPayloadConverter (),
538
548
JSONPlainPayloadConverter (),
You can’t perform that action at this time.
0 commit comments