nficano commited on
Commit
0e6edd9
·
1 Parent(s): 53fbdd3
Files changed (2) hide show
  1. pytube/cli.py +3 -1
  2. pytube/streams.py +4 -2
pytube/cli.py CHANGED
@@ -136,8 +136,10 @@ def on_progress(stream, file_handle, bytes_remaining):
136
 
137
  :param object stream:
138
  An instance of :class:`Stream <Stream>` being downloaded.
139
- :param :class:`~_io.BufferedWriter` file_handle:
140
  The file handle where the media is being written to.
 
 
141
  :param int bytes_remaining:
142
  How many bytes have been downloaded.
143
 
 
136
 
137
  :param object stream:
138
  An instance of :class:`Stream <Stream>` being downloaded.
139
+ :param file_handle:
140
  The file handle where the media is being written to.
141
+ :type file_handle:
142
+ :class:`_io.BufferedWriter`
143
  :param int bytes_remaining:
144
  How many bytes have been downloaded.
145
 
pytube/streams.py CHANGED
@@ -180,8 +180,10 @@ class Stream(object):
180
 
181
  :param str chunk:
182
  Segment of media file binary data, not yet written to disk.
183
- :param BufferedWriter file_handle:
184
  The file handle where the media is being written to.
 
 
185
  :param int bytes_remaining:
186
  The delta between the total file size in bytes and amount already
187
  downloaded.
@@ -207,7 +209,7 @@ class Stream(object):
207
  :param file_handle:
208
  The file handle where the media is being written to.
209
  :type file_handle:
210
- BufferedWriter
211
 
212
  """
213
  logger.debug('download finished')
 
180
 
181
  :param str chunk:
182
  Segment of media file binary data, not yet written to disk.
183
+ :param file_handle:
184
  The file handle where the media is being written to.
185
+ :type file_handle:
186
+ :class:`~_io.BufferedWriter`
187
  :param int bytes_remaining:
188
  The delta between the total file size in bytes and amount already
189
  downloaded.
 
209
  :param file_handle:
210
  The file handle where the media is being written to.
211
  :type file_handle:
212
+ :class:`~_io.BufferedWriter`
213
 
214
  """
215
  logger.debug('download finished')