code: def apply_limit(self):
      '''Naively apply query limit.'''
      self._ensure_modification_is_safe()
  
      if self.query.limit is not None:
        self._iterable = limit_gen(self.query.limit, self._iterablef apply_limit(self):
      '''Naively apply query limit.'''
      self._ensure_modification_is_safe()
  
      if self.query.limit is not None:
        self._iterable = limit_gen(self.query.limit, self._iterable)
docs: Naively apply query limit.