class documentation
class TransferTypeConverter(Generic[
Converter between a user-facing value and a transfer type value.
Warning
This API is experimental and subject to change.
| Method | from |
Convert a transfer type value to its user-facing value. |
| Method | to |
Convert a user-facing value to its transfer type value. |
| Class Variable | transfer |
Optional type hint for the transfer type to use when decoding payloads. |
@abstractmethod
def from_transfer_type(self, value: TransferTypeT, type_hint: type[ ValueT]) -> ValueT:
(source)
¶
Convert a transfer type value to its user-facing value.
type_hint is the requested user-facing type, including concrete generic arguments.
Warning
This API is experimental and subject to change.