From 505ccf5a1d0bb21224e0aab93f165d914bf286aa Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 9 Sep 2020 22:23:14 -0400 Subject: [PATCH] Fix a few typos --- README.rst | 2 +- docs/introduction/di_in_python.rst | 4 ++-- docs/providers/index.rst | 2 +- docs/providers/overriding.rst | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 91397b28..b8dc44a5 100644 --- a/README.rst +++ b/README.rst @@ -143,7 +143,7 @@ Here comes the ``Dependency Injector``. What does the Dependency Injector do? ------------------------------------- -With the dependency injection pattern objects lose the responsibility of assembling the +With the dependency injection pattern objects loose the responsibility of assembling the dependencies. The ``Dependency Injector`` absorbs that responsibility. ``Dependency Injector`` helps to assemble the objects. diff --git a/docs/introduction/di_in_python.rst b/docs/introduction/di_in_python.rst index 7822e964..33058521 100644 --- a/docs/introduction/di_in_python.rst +++ b/docs/introduction/di_in_python.rst @@ -123,7 +123,7 @@ Here comes the ``Dependency Injector``. What does the Dependency Injector do? ------------------------------------- -With the dependency injection pattern objects lose the responsibility of assembling the +With the dependency injection pattern objects loose the responsibility of assembling the dependencies. The ``Dependency Injector`` absorbs that responsibility. ``Dependency Injector`` helps to assemble the objects. @@ -178,7 +178,7 @@ client with a mock: with container.api_client.override(mock.Mock()): service = container.service() -You can override any provider by another provider. +You can override any provider with another provider. It also helps you in configuring project for the different environments: replace an API client with a stub on the dev or stage. diff --git a/docs/providers/index.rst b/docs/providers/index.rst index d2097593..91ffc9fd 100644 --- a/docs/providers/index.rst +++ b/docs/providers/index.rst @@ -24,7 +24,7 @@ It causes the cascade effect that helps to assemble object graphs. See ``Factory │ └──> provider6() -Another providers feature is an overriding. You can override any provider by another provider. +Another providers feature is an overriding. You can override any provider with another provider. This helps in testing. This also helps in overriding API clients with stubs for the development or staging environment. See the example at :ref:`provider-overriding`. diff --git a/docs/providers/overriding.rst b/docs/providers/overriding.rst index 23effd80..fdc14331 100644 --- a/docs/providers/overriding.rst +++ b/docs/providers/overriding.rst @@ -10,7 +10,7 @@ Provider overriding .. currentmodule:: dependency_injector.providers -You can override any provider by another provider. +You can override any provider with another provider. When provider is overridden it calls to the overriding provider instead of providing the object by its own.