Decode the data using the specified encoder. Args: data: The data to decode. Returns: The decoded data.
(self, data: bytes, _: core_schema.ValidationInfo)
| 2548 | ) |
| 2549 | |
| 2550 | def decode(self, data: bytes, _: core_schema.ValidationInfo) -> bytes: |
| 2551 | """Decode the data using the specified encoder. |
| 2552 | |
| 2553 | Args: |
| 2554 | data: The data to decode. |
| 2555 | |
| 2556 | Returns: |
| 2557 | The decoded data. |
| 2558 | """ |
| 2559 | return self.encoder.decode(data) |
| 2560 | |
| 2561 | def encode(self, value: bytes) -> bytes: |
| 2562 | """Encode the data using the specified encoder. |
no outgoing calls