@@ -215,10 +215,10 @@ def get(self, url, timeout=None):
215215 """Request an URL.
216216
217217 Args:
218- url (str): The web location we want to retrieve.
219- timeout (Optional[ int| float] ): If this value is specified, use it as the read timeout
220- from the server (instead of the one specified during creation of the connection
221- pool).
218+ url (:obj:` str` ): The web location we want to retrieve.
219+ timeout (:obj:` int` | :obj:` float` ): If this value is specified, use it as the read
220+ timeout from the server (instead of the one specified during creation of the
221+ connection pool).
222222
223223 Returns:
224224 A JSON object.
@@ -235,11 +235,11 @@ def get(self, url, timeout=None):
235235 def post (self , url , data , timeout = None ):
236236 """Request an URL.
237237 Args:
238- url (str): The web location we want to retrieve.
238+ url (:obj:` str` ): The web location we want to retrieve.
239239 data (dict[str, str|int]): A dict of key/value pairs. Note: On py2.7 value is unicode.
240- timeout (Optional[ int| float] ): If this value is specified, use it as the read timeout
241- from the server (instead of the one specified during creation of the connection
242- pool).
240+ timeout (:obj:` int` | :obj:` float` ): If this value is specified, use it as the read
241+ timeout from the server (instead of the one specified during creation of the
242+ connection pool).
243243
244244 Returns:
245245 A JSON object.
@@ -269,10 +269,10 @@ def retrieve(self, url, timeout=None):
269269 """Retrieve the contents of a file by its URL.
270270
271271 Args:
272- url (str): The web location we want to retrieve.
273- timeout (Optional[ int| float] ): If this value is specified, use it as the read timeout
274- from the server (instead of the one specified during creation of the connection
275- pool).
272+ url (:obj:` str` ): The web location we want to retrieve.
273+ timeout (:obj:` int` | :obj:` float` ): If this value is specified, use it as the read
274+ timeout from the server (instead of the one specified during creation of the
275+ connection pool).
276276
277277 """
278278 urlopen_kwargs = {}
@@ -285,9 +285,9 @@ def download(self, url, filename, timeout=None):
285285 """Download a file by its URL.
286286 Args:
287287 url (str): The web location we want to retrieve.
288- timeout (Optional[ int| float] ): If this value is specified, use it as the read timeout
289- from the server (instead of the one specified during creation of the connection
290- pool).
288+ timeout (:obj:` int` | :obj:` float` ): If this value is specified, use it as the read
289+ timeout from the server (instead of the one specified during creation of the
290+ connection pool).
291291
292292 filename:
293293 The filename within the path to download the file.
0 commit comments