with flow documentation, I wish to enable paramete...
# ask-community
s
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