File tree Expand file tree Collapse file tree 4 files changed +16
-22
lines changed
rpc/generated/test_service
snapshot/snapshots/test_unknown_enum/enumService
stream/generated/test_service Expand file tree Collapse file tree 4 files changed +16
-22
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,11 @@ class Rpc_MethodInput(TypedDict):
3939 data : str
4040
4141
42- Rpc_MethodInputTypeAdapter : TypeAdapter [Rpc_MethodInput ] = TypeAdapter (Rpc_MethodInput )
42+ Rpc_MethodInputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (Rpc_MethodInput )
4343
4444
4545class Rpc_MethodOutput (BaseModel ):
4646 data : str
4747
4848
49- Rpc_MethodOutputTypeAdapter : TypeAdapter [Rpc_MethodOutput ] = TypeAdapter (
50- Rpc_MethodOutput
51- )
49+ Rpc_MethodOutputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (Rpc_MethodOutput )
Original file line number Diff line number Diff line change 2626
2727NeedsenumInput = Literal ["in_first" ] | Literal ["in_second" ]
2828encode_NeedsenumInput : Callable [["NeedsenumInput" ], Any ] = lambda x : x
29- NeedsenumInputTypeAdapter : TypeAdapter [NeedsenumInput ] = TypeAdapter (NeedsenumInput )
29+
30+ NeedsenumInputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (NeedsenumInput )
31+
3032NeedsenumOutput = Annotated [
3133 Literal ["out_first" ] | Literal ["out_second" ] | RiverUnknownValue ,
3234 WrapValidator (translate_unknown_value ),
3335]
34- NeedsenumOutputTypeAdapter : TypeAdapter [NeedsenumOutput ] = TypeAdapter (NeedsenumOutput )
36+
37+ NeedsenumOutputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (NeedsenumOutput )
38+
3539NeedsenumErrors = Annotated [
3640 Literal ["err_first" ] | Literal ["err_second" ] | RiverUnknownValue ,
3741 WrapValidator (translate_unknown_value ),
3842]
39- NeedsenumErrorsTypeAdapter : TypeAdapter [NeedsenumErrors ] = TypeAdapter (NeedsenumErrors )
43+
44+ NeedsenumErrorsTypeAdapter : TypeAdapter [Any ] = TypeAdapter (NeedsenumErrors )
Original file line number Diff line number Diff line change @@ -71,9 +71,8 @@ class NeedsenumobjectInputOneOf_in_second(TypedDict):
7171 if x ["kind" ] == "in_first"
7272 else encode_NeedsenumobjectInputOneOf_in_second (x )
7373)
74- NeedsenumobjectInputTypeAdapter : TypeAdapter [NeedsenumobjectInput ] = TypeAdapter (
75- NeedsenumobjectInput
76- )
74+
75+ NeedsenumobjectInputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (NeedsenumobjectInput )
7776
7877
7978class NeedsenumobjectOutputFooOneOf_out_first (BaseModel ):
@@ -106,9 +105,7 @@ class NeedsenumobjectOutput(BaseModel):
106105 foo : Optional [NeedsenumobjectOutputFoo ] = None
107106
108107
109- NeedsenumobjectOutputTypeAdapter : TypeAdapter [NeedsenumobjectOutput ] = TypeAdapter (
110- NeedsenumobjectOutput
111- )
108+ NeedsenumobjectOutputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (NeedsenumobjectOutput )
112109
113110
114111class NeedsenumobjectErrorsFooAnyOf_0 (RiverError ):
@@ -131,6 +128,4 @@ class NeedsenumobjectErrors(RiverError):
131128 foo : Optional [NeedsenumobjectErrorsFoo ] = None
132129
133130
134- NeedsenumobjectErrorsTypeAdapter : TypeAdapter [NeedsenumobjectErrors ] = TypeAdapter (
135- NeedsenumobjectErrors
136- )
131+ NeedsenumobjectErrorsTypeAdapter : TypeAdapter [Any ] = TypeAdapter (NeedsenumobjectErrors )
Original file line number Diff line number Diff line change @@ -39,15 +39,11 @@ class Stream_MethodInput(TypedDict):
3939 data : str
4040
4141
42- Stream_MethodInputTypeAdapter : TypeAdapter [Stream_MethodInput ] = TypeAdapter (
43- Stream_MethodInput
44- )
42+ Stream_MethodInputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (Stream_MethodInput )
4543
4644
4745class Stream_MethodOutput (BaseModel ):
4846 data : str
4947
5048
51- Stream_MethodOutputTypeAdapter : TypeAdapter [Stream_MethodOutput ] = TypeAdapter (
52- Stream_MethodOutput
53- )
49+ Stream_MethodOutputTypeAdapter : TypeAdapter [Any ] = TypeAdapter (Stream_MethodOutput )
You can’t perform that action at this time.
0 commit comments