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: