from typing import Literal
from prefect import flow
AllowedStrings = Literal["A", "B"]
@flow
def example(str_input: AllowedStrings):
print(str_input)
example("C")
--->
Copy code
11:15:58.598 | INFO | prefect.engine - Created flow run 'blond-auk' for flow 'example'
11:15:58.598 | ERROR | Flow run 'blond-auk' - Validation of flow parameters failed with error: ParameterTypeError: Flow run received invalid parameters:
- str_input: unexpected value; permitted: 'A', 'B'
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.