def __call__(self, *args, **kwargs): query = kwargs.get("query") if query is not None: del kwargs["query"] else: return self.select(*args, **kwargs) return LazySet.__call__(self, query).select(*args, **kwargs)
def __call__(self, query=None, **kwargs): if query is None: return self.select(**kwargs) return LazySet.__call__(self, query).select(**kwargs)