<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def limit(self, limit: int) -> "QuerySet": """ Limits QuerySet to given length. """

        queryset = self._clone()
        queryset._limit = limit
        return queryset