We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5059ad commit 9819b23Copy full SHA for 9819b23
src/replit_river/codegen/client.py
@@ -275,7 +275,9 @@ def flatten_union(tpe: RiverType) -> list[RiverType]:
275
encoder_name = TypeName(
276
f"encode_{render_literal_type(type_name)}"
277
)
278
- encoder_names.add(encoder_name)
+ if base_model == "TypedDict":
279
+ # "encoder_names" is only a TypedDict thing
280
+ encoder_names.add(encoder_name)
281
_field_name = render_literal_type(encoder_name)
282
typeddict_encoder.append(
283
f"""\
0 commit comments