

def get(self, injector):
    key = id(injector)
    try:
        return self._cache[key]
    except KeyError:
        instance = self._cache[key] = self._old_provider.get(injector)
        return instance

dataset/ETHPy150Open alecthomas/flask_injector/flask_injector.py CachedProviderWrapper.get/original