Skip to content

Commit 689c034

Browse files
client.send_subscription always returns a "A | RiverError"
1 parent d5dad8e commit 689c034

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/replit_river/codegen/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,7 @@ async def {name}(
10131013
]
10141014
)
10151015
elif procedure.type == "subscription":
1016+
output_or_error_type = UnionTypeExpr([output_or_error_type, TypeName("RiverError")])
10161017
current_chunks.extend(
10171018
[
10181019
reindent(

0 commit comments

Comments
 (0)