Skip to content

Commit

Permalink
Correctly handling a "not" type in input position
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Nov 29, 2024
1 parent 502278f commit 76af9db
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions replit_river/codegen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,14 @@ def __init__(self, client: river.Client[Any]):
exclude_none=True,
)
"""
if isinstance(
procedure.input, RiverConcreteType
) and procedure.input.type not in ["object", "array"]:
if (
(
isinstance(procedure.input, RiverConcreteType)
and procedure.input.type not in ["object", "array"]
)
or isinstance(procedure.input, RiverNotType)
or procedure.input is None
):
render_input_method = "lambda x: x"

assert (
Expand Down

0 comments on commit 76af9db

Please sign in to comment.