with flow documentation, I wish to enable parameter documentation. Is there a way to enable parameter documentation directly in flow parameter as oppose to wrapping all parameters in a pydandic model? I know this works
Copy code
from pydantic import BaseModel, Field
from prefect import flow
class Param(BaseModel)
a: str = Field(..., description="some annotation")
@flow
def flow(param: Param):
pass
But this would raise an error
Copy code
from pydantic import Field
from prefect import flow
@flow
def flow(a: str = Field(..., description="some annotation")):
pass
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.