From 6c7c9eaa47275c7d6caa451790762a5cbccbbabf Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 25 Aug 2020 10:27:11 -0400 Subject: [PATCH] Update example --- README.rst | 2 +- examples/di_demo2/demo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(