diff --git a/README.rst b/README.rst index f01cedad..eafb0e42 100644 --- a/README.rst +++ b/README.rst @@ -152,7 +152,7 @@ framework: api_client = providers.Singleton( ApiClient, api_key=config.api_key, - timeout=config.timeout, + timeout=config.timeout.as_int(), ) service = providers.Factory( diff --git a/examples/di_demo2/demo.py b/examples/di_demo2/demo.py index df99e433..c62c1804 100644 --- a/examples/di_demo2/demo.py +++ b/examples/di_demo2/demo.py @@ -21,7 +21,7 @@ class Container(containers.DeclarativeContainer): api_client = providers.Singleton( ApiClient, api_key=config.api_key, - timeout=config.timeout, + timeout=config.timeout.as_int(), ) service = providers.Factory(