docs: def _update_frames(self, written):
          """Update self.frames after writing."""
          if self.seekable():
              curr = self.tell()
              self._info.frames = self.seek(0, SEEK_END)
              self.seek(curr, SEEK_SET)
          else:
              self._info.frames += written