diff --git a/examples/wiring/example_attribute_annotated.py b/examples/wiring/example_attribute_annotated.py index 69d2769e..e302e218 100644 --- a/examples/wiring/example_attribute_annotated.py +++ b/examples/wiring/example_attribute_annotated.py @@ -11,6 +11,7 @@ class Service: class Container(containers.DeclarativeContainer): + service = providers.Factory(Service) @@ -18,6 +19,7 @@ service: Annotated[Service, Provide[Container.service]] class Main: + service: Annotated[Service, Provide[Container.service]]