|
| 1 | +# Code generated by river.codegen. DO NOT EDIT. |
| 2 | +from collections.abc import AsyncIterable, AsyncIterator |
| 3 | +import datetime |
| 4 | +from typing import ( |
| 5 | + Any, |
| 6 | + Literal, |
| 7 | + Mapping, |
| 8 | + NotRequired, |
| 9 | + TypedDict, |
| 10 | +) |
| 11 | +from typing_extensions import Annotated |
| 12 | + |
| 13 | +from pydantic import BaseModel, Field, TypeAdapter, WrapValidator |
| 14 | +from replit_river.error_schema import RiverError |
| 15 | +from replit_river.client import ( |
| 16 | + RiverUnknownError, |
| 17 | + translate_unknown_error, |
| 18 | + RiverUnknownValue, |
| 19 | + translate_unknown_value, |
| 20 | +) |
| 21 | + |
| 22 | +import replit_river as river |
| 23 | + |
| 24 | + |
| 25 | +def encode_Rpc_MethodInput( |
| 26 | + x: "Rpc_MethodInput", |
| 27 | +) -> Any: |
| 28 | + return { |
| 29 | + k: v |
| 30 | + for (k, v) in ( |
| 31 | + { |
| 32 | + "data field6": x.get("data_field6"), |
| 33 | + "data-field1": x.get("data_field1"), |
| 34 | + "data.field3": x.get("data_field3"), |
| 35 | + "data/field4": x.get("data_field4"), |
| 36 | + "data:field2": x.get("data_field2"), |
| 37 | + "data@field5": x.get("data_field5"), |
| 38 | + } |
| 39 | + ).items() |
| 40 | + if v is not None |
| 41 | + } |
| 42 | + |
| 43 | + |
| 44 | +class Rpc_MethodInput(TypedDict): |
| 45 | + data_field6: NotRequired[str | None] |
| 46 | + data_field1: str |
| 47 | + data_field3: NotRequired[bool | None] |
| 48 | + data_field4: NotRequired[str | None] |
| 49 | + data_field2: float |
| 50 | + data_field5: NotRequired[int | None] |
0 commit comments