Make Provider.override() return overriding provider

This commit is contained in:
Roman Mogilatov 2016-03-01 12:27:22 +02:00
parent 9f2a521888
commit e46ffeb1bc
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ class Provider(object):
if self.__class__.__OPTIMIZED_CALLS__:
self.__call__ = self._call_last_overriding
return provider
def reset_last_overriding(self):
"""Reset last overriding provider.