def test_deserialize_unboxed_type(fx_unboxed_type, fx_token_type): v = 3.14 assert fx_unboxed_type(v) == deserialize_unboxed_type(fx_unboxed_type, v) uuid_ = uuid.uuid4() t = str(uuid_) assert fx_token_type(uuid_) == deserialize_unboxed_type(fx_token_type, t)
def __nirum_deserialize__(cls, value): return deserialize_unboxed_type(cls, value)
def __nirum_deserialize__( cls: type, value: typing.Mapping[str, typing.Any]) -> 'Token': return deserialize_unboxed_type(cls, value)