From 7c3daf4c64b9b42293e0a45778e71d0232536b71 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Wed, 25 Nov 2015 15:13:27 +0200 Subject: [PATCH] Update providers module API docs --- dependency_injector/providers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dependency_injector/providers.py b/dependency_injector/providers.py index 71c4af3b..5c25536b 100644 --- a/dependency_injector/providers.py +++ b/dependency_injector/providers.py @@ -29,7 +29,7 @@ class Provider(object): method is called every time when not overridden provider is called. :py:class:`Provider` implements provider overriding logic that should be - also common for all providers. + also common for all providers: .. code-block:: python @@ -127,6 +127,9 @@ class Provider(object): def reset_last_overriding(self): """Reset last overriding provider. + :raise: :py:exc:`dependency_injector.errors.Error` if provider is not + overridden. + :rtype: None """ if not self.overridden_by: