FastAPI and Pydantic supports a new feature: Annotated, but rocketry still doesn't.
It's a pretty usefull to declare some application-level Arguments and use it everywhere.
Code without Annotated:
arg = SimpleArg(1)
@app.task("...")
def func(dep: int = arg):
...
@app.task("...")
def func2(dep: int = arg):
...
FastAPI and Pydantic supports a new feature:
Annotated
, but rocketry still doesn't. It's a pretty usefull to declare some application-level Arguments and use it everywhere.Code without
Annotated
:Code with
Annotated
I suppose, all packages, based on function signature, should implement this feature too. So, I am here to make it.