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
Jake Kaplan
02/12/2025, 2:29 PM
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.
Jake Kaplan
02/12/2025, 2:30 PM
or
Optional[int]
depending on your python version
g
Giacomo Chiarella
02/12/2025, 2:30 PM
I’m on python 3.10, I think I can use Optional[int]. I will try it out soon! Thank you for the suggestion!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.