def limit(self, limit=None, offset=None):
        self._limit = Limit(
            limit=limit,
            offset=offset
        )
        return self
Sets a limit and/or offset to the query to limit the number of rows returned.
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Query.limit