(cls, loader)
return lambda *args, **kwargs: cls(loader(*args, **kwargs))
Construct a callable which returns the eager loader made lazy.
Construct a callable which returns the eager loader made lazy.
Construct a callable which returns the eager loader made lazy .
def factory(cls, loader):
        """Construct a callable which returns the eager loader made lazy."""
        cls.__check_eager_loader(loader)
        return lambda *args, **kwargs: cls(loader(*args, **kwargs))
def factory ( cls , loader ) : cls . __check_eager_loader ( loader ) return lambda * args , * * kwargs : cls ( loader ( * args , * * kwargs ) )