Skip to content

Commit 40d684f

Browse files
Regen tests
1 parent 09b2217 commit 40d684f

File tree

4 files changed

+596
-0
lines changed

4 files changed

+596
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Code generated by river.codegen. DO NOT EDIT.
2+
from pydantic import BaseModel
3+
from typing import Literal
4+
5+
import replit_river as river
6+
7+
8+
from .test_service import Test_ServiceService
9+
10+
11+
class PathologicalClient:
12+
def __init__(self, client: river.Client[Literal[None]]):
13+
self.test_service = Test_ServiceService(client)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Code generated by river.codegen. DO NOT EDIT.
2+
from collections.abc import AsyncIterable, AsyncIterator
3+
from typing import Any
4+
import datetime
5+
6+
from pydantic import TypeAdapter
7+
8+
from replit_river.error_schema import RiverError, RiverErrorTypeAdapter
9+
import replit_river as river
10+
11+
12+
from .pathological_method import (
13+
Pathological_MethodInput,
14+
Pathological_MethodInputTypeAdapter,
15+
encode_Pathological_MethodInput,
16+
encode_Pathological_MethodInputObj_Boolean,
17+
encode_Pathological_MethodInputObj_Date,
18+
encode_Pathological_MethodInputObj_Integer,
19+
encode_Pathological_MethodInputObj_Null,
20+
encode_Pathological_MethodInputObj_Number,
21+
encode_Pathological_MethodInputObj_String,
22+
encode_Pathological_MethodInputObj_Uint8Array,
23+
encode_Pathological_MethodInputObj_Undefined,
24+
encode_Pathological_MethodInputReq_Obj_Boolean,
25+
encode_Pathological_MethodInputReq_Obj_Date,
26+
encode_Pathological_MethodInputReq_Obj_Integer,
27+
encode_Pathological_MethodInputReq_Obj_Null,
28+
encode_Pathological_MethodInputReq_Obj_Number,
29+
encode_Pathological_MethodInputReq_Obj_String,
30+
encode_Pathological_MethodInputReq_Obj_Uint8Array,
31+
encode_Pathological_MethodInputReq_Obj_Undefined,
32+
)
33+
34+
boolTypeAdapter: TypeAdapter[Any] = TypeAdapter(bool)
35+
36+
37+
class Test_ServiceService:
38+
def __init__(self, client: river.Client[Any]):
39+
self.client = client
40+
41+
async def pathological_method(
42+
self,
43+
input: Pathological_MethodInput,
44+
timeout: datetime.timedelta,
45+
) -> bool:
46+
return await self.client.send_rpc(
47+
"test_service",
48+
"pathological_method",
49+
input,
50+
encode_Pathological_MethodInput,
51+
lambda x: boolTypeAdapter.validate_python(
52+
x # type: ignore[arg-type]
53+
),
54+
lambda x: RiverErrorTypeAdapter.validate_python(
55+
x # type: ignore[arg-type]
56+
),
57+
timeout,
58+
)

0 commit comments

Comments
 (0)