code: def readlines(self, sizehint=None):
          
          wrapped = self.wrapped
          try:
              readlines = wrapped.readlines
          except AttributeError:
              lines = []
              while 1:
                  line = wrapped.readline()
                  if line:
                      lines.append(line)
                  else:
                      break
              return lines
          return readlines() if sizehint is None else readlines(sizehint)
docs: Reads until EOF using :meth:`readline()`.
  
          :param sizehint: if it's present, instead of reading up to EOF,
                           whole lines totalling approximately ``sizehint``
                           bytes (or more to accommodate a final whole line)
          :type sizehint: :class:`numbers.Integral`
          :returns: a list containing the lines read
          :rtype: :class:`~typing.List`\ [:class:`bytes`]