Skip to content

Commit 92dea66

Browse files
Fix codegen crashes for intersection types and complex list inner typesCI
1 parent f216da6 commit 92dea66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/replit_river/codegen/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def extract_props(tpe: RiverType) -> list[dict[str, RiverType]]:
633633
f"encode_{render_literal_type(type_name)}"
634634
)
635635
encoder_names.add(encoder_name)
636-
typeddict_encoder.append(f"{encoder_name}(x[{repr(name)}])")
636+
typeddict_encoder.append(f"{render_literal_type(encoder_name)}(x[{repr(name)}])")
637637
elif isinstance(prop, RiverConcreteType):
638638
if name == "$kind":
639639
safe_name = "kind"

0 commit comments

Comments
 (0)