code: def finish(self, data=''):
          '''
          Optionally add pending data, turn off streaming mode, and yield
          result chunks, which implies all pending data will be consumed.
  
          :yields: result chunks
          :ytype: str
          '''
          self.pending += data
          self.streaming = False
          for i in self:
              yield f finish(self, data=''):
          '''
          Optionally add pending data, turn off streaming mode, and yield
          result chunks, which implies all pending data will be consumed.
  
          :yields: result chunks
          :ytype: str
          '''
          self.pending += data
          self.streaming = False
          for i in self:
              yield i
docs: Optionally add pending data, turn off streaming mode, and yield
          result chunks, which implies all pending data will be consumed.
  
          :yields: result chunks
          :ytype: str