8000 Update example · bimec/python-dependency-injector@6c7c9ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c7c9ea

Browse files
committed
Update example
1 parent 0f952b5 commit 6c7c9ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ framework:
152152
api_client = providers.Singleton(
153153
ApiClient,
154154
api_key=config.api_key,
155-
timeout=config.timeout,
155+
timeout=config.timeout.as_int(),
156156
)
157157
158158
service = providers.Factory(

examples/di_demo2/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Container(containers.DeclarativeContainer):
2121
api_client = providers.Singleton(
2222
ApiClient,
2323
api_key=config.api_key,
24-
timeout=config.timeout,
24+
timeout=config.timeout.as_int(),
2525
)
2626

2727
service = providers.Factory(

0 commit comments

Comments
 (0)
0