Docs should cover general tips on how to migrate, replacing fastapi depends with wireup for both functions and class-based dependencies.
@dataclass
class ServiceA:
service_b: Annotated[ServiceB, Depends(ServiceB)]
# other dependencies using Depends(...)
Then invoked from fastapi: service_a: Annotated[ServiceA, Depends(ServiceA)]
Docs should cover general tips on how to migrate, replacing fastapi depends with wireup for both functions and class-based dependencies.
Then invoked from fastapi:
service_a: Annotated[ServiceA, Depends(ServiceA)]