Пример #1
0
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)
Пример #2
0
 def __nirum_deserialize__(cls, value):
     return deserialize_unboxed_type(cls, value)
Пример #3
0
 def __nirum_deserialize__(
         cls: type, value: typing.Mapping[str, typing.Any]) -> 'Token':
     return deserialize_unboxed_type(cls, value)