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 28d6171 commit ce654ccCopy full SHA for ce654cc
replit_river/codegen/client.py
@@ -85,7 +85,7 @@ def is_literal(tpe: RiverType) -> bool:
85
if isinstance(tpe, RiverUnionType):
86
return all(is_literal(t) for t in tpe.anyOf)
87
elif isinstance(tpe, RiverConcreteType):
88
- return tpe.type in set(["string", "number", "boolean"])
+ return tpe.type not in set(["object", "array"])
89
else:
90
return False
91
@@ -604,10 +604,6 @@ def __init__(self, client: river.Client[{handshake_type}]):
604
lambda x: TypeAdapter({input_type})
605
.validate_python
606
""".rstrip()
607
- if isinstance(
608
- procedure.init, RiverConcreteType
609
- ) and procedure.init.type not in ["object", "array"]:
610
- render_init_method = "lambda x: x"
611
612
# Input renderer
613
if typed_dict_inputs:
0 commit comments