-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrpc_method.py
More file actions
43 lines (35 loc) · 852 Bytes
/
rpc_method.py
File metadata and controls
43 lines (35 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ruff: noqa
# Code generated by river.codegen. DO NOT EDIT.
from collections.abc import AsyncIterable, AsyncIterator
import datetime
from typing import (
Any,
Callable,
Dict,
List,
Literal,
Optional,
Mapping,
NotRequired,
Union,
Tuple,
TypedDict,
)
from typing_extensions import Annotated
from pydantic import BaseModel, Field, TypeAdapter, WrapValidator
from replit_river.error_schema import RiverError
from replit_river.client import RiverUnknownValue, translate_unknown_value
import replit_river as river
encode_Rpc_MethodInput: Callable[["Rpc_MethodInput"], Any] = lambda x: {
k: v
for (k, v) in (
{
"data": x.get("data"),
}
).items()
if v is not None
}
class Rpc_MethodInput(TypedDict):
data: str
class Rpc_MethodOutput(BaseModel):
data: str