diff --git a/examples/providers/singleton_scoped.py b/examples/providers/singleton_scoped.py index 0d40a6e7..a07c74e5 100644 --- a/examples/providers/singleton_scoped.py +++ b/examples/providers/singleton_scoped.py @@ -10,7 +10,7 @@ class Service: class Container(containers.DeclarativeContainer): - service_provider = providers.Singleton(Service) + service_provider = providers.ThreadLocalSingleton(Service) def index_view():