Skip to content

Commit 23c556d

Browse files
Correctly handling a "not" type in input position
1 parent 502278f commit 23c556d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

replit_river/codegen/client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,12 @@ def __init__(self, client: river.Client[Any]):
831831
exclude_none=True,
832832
)
833833
"""
834-
if isinstance(
835-
procedure.input, RiverConcreteType
836-
) and procedure.input.type not in ["object", "array"]:
834+
if (
835+
(isinstance(procedure.input, RiverConcreteType)
836+
and procedure.input.type not in ["object", "array"])
837+
or isinstance(procedure.input, RiverNotType)
838+
or procedure.input is None
839+
):
837840
render_input_method = "lambda x: x"
838841

839842
assert (

0 commit comments

Comments
 (0)