decode(transformation): apply with .pipe.
Functions#
__init__#
__init__(transformation) -> None| Parameter | Type | Description |
|---|---|---|
transformation | Transformation[Any, Any, Any, Any] |
def __init__(self, transformation: Transformation[Any, Any, Any, Any]) -> None:
self._transformation = transformation__call__#
__call__[E, RD2 = Never, RE2 = Never](schema) -> DecodeToSchema[T_co, E, RD_co | RD2, RE_co | RE2]| Parameter | Type | Description |
|---|---|---|
schema | Codec[T_co, E, RD2, RE2] |
Returns DecodeToSchema[T_co, E, RD_co | RD2, RE_co | RE2]
def __call__[E, RD2 = Never, RE2 = Never](
self, schema: Codec[T_co, E, RD2, RE2], /
) -> DecodeToSchema[T_co, E, RD_co | RD2, RE_co | RE2]:
return _make(schema, to_type(schema), self._transformation)