mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 03:36:41 +03:00
Update example
This commit is contained in:
parent
0f952b5915
commit
6c7c9eaa47
|
@ -152,7 +152,7 @@ framework:
|
||||||
api_client = providers.Singleton(
|
api_client = providers.Singleton(
|
||||||
ApiClient,
|
ApiClient,
|
||||||
api_key=config.api_key,
|
api_key=config.api_key,
|
||||||
timeout=config.timeout,
|
timeout=config.timeout.as_int(),
|
||||||
)
|
)
|
||||||
|
|
||||||
service = providers.Factory(
|
service = providers.Factory(
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Container(containers.DeclarativeContainer):
|
||||||
api_client = providers.Singleton(
|
api_client = providers.Singleton(
|
||||||
ApiClient,
|
ApiClient,
|
||||||
api_key=config.api_key,
|
api_key=config.api_key,
|
||||||
timeout=config.timeout,
|
timeout=config.timeout.as_int(),
|
||||||
)
|
)
|
||||||
|
|
||||||
service = providers.Factory(
|
service = providers.Factory(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user