Hi everyone! Let’s try here if I get any answer. I...
# prefect-ui
g
Hi everyone! Let’s try here if I get any answer. I’ve having this issue with Prefect 2.20. The parameter is declared as
Copy code
pull_request_number: int = None
in the flow entrypoint. To be able to submit a flow run I have to switch to the json view and remove the null parameters. How can I submit a flow run without switching to the json view and not having this error?
j
hey! I believe if you switch the typing here to
Copy code
pull_request_number: int | None = None
you should be able to submit without issue.
or
Optional[int]
depending on your python version
g
I’m on python 3.10, I think I can use Optional[int]. I will try it out soon! Thank you for the suggestion!
👍 1