@@ -22,7 +22,7 @@ def _get_writer(self, frontier, slot):
2222 callback to write newcount data per slot.
2323
2424 :return: a batchuploader writer instance.
25- :rtype: scrapinghub.hubstorage.batchuploader._BatchWriter
25+ :rtype: :class:` scrapinghub.hubstorage.batchuploader._BatchWriter`
2626 """
2727 key = (frontier , slot )
2828 writer = self ._writers .get (key )
@@ -89,23 +89,23 @@ def get(self, name):
8989
9090 :param name: a frontier name string.
9191 :return: :class:`Frontier` instance.
92- :rtype: Frontier
92+ :rtype: :class:` Frontier`
9393 """
9494 return Frontier (self ._client , self , name )
9595
9696 def iter (self ):
9797 """Iterate through frontiers.
9898
9999 :return: an iterator over frontiers names.
100- :rtype: collections.Iterable[str]
100+ :rtype: :class:` collections.Iterable[str]`
101101 """
102102 return iter (self .list ())
103103
104104 def list (self ):
105105 """List frontiers names.
106106
107107 :return: a list of frontiers names.
108- :rtype: List [str]
108+ :rtype: :class:`list [str]`
109109 """
110110 return next (self ._origin .apiget ('list' ))
111111
@@ -155,23 +155,23 @@ def get(self, slot):
155155 """Get a slot by name.
156156
157157 :return: :class:`FrontierSlot` instance.
158- :rtype: FrontierSlot
158+ :rtype: :class:` FrontierSlot`
159159 """
160160 return FrontierSlot (self ._client , self , slot )
161161
162162 def iter (self ):
163163 """Iterate through slots.
164164
165165 :return: an iterator over frontier slots names.
166- :rtype: collections.Iterate[str]
166+ :rtype: :class:` collections.Iterate[str]`
167167 """
168168 return iter (self .list ())
169169
170170 def list (self ):
171171 """List all slots.
172172
173173 :return: a list of frontier slots names.
174- :rtype: List [str]
174+ :rtype: :class:`list [str]`
175175 """
176176 return next (self ._frontiers ._origin .apiget ((self .key , 'list' )))
177177
@@ -250,7 +250,7 @@ def f(self):
250250 """Shortcut to have quick access to slot fingerprints.
251251
252252 :return: :class:`FrontierSlotFingerprints` instance.
253- :rtype: FrontierSlotFingerprints
253+ :rtype: :class:` FrontierSlotFingerprints`
254254 """
255255 return self .fingerprints
256256
@@ -259,7 +259,7 @@ def q(self):
259259 """Shortcut to have quick access to a slot queue.
260260
261261 :return: :class:`FrontierSlotQueue` instance.
262- :rtype: FrontierSlotQueue
262+ :rtype: :class:` FrontierSlotQueue`
263263 """
264264 return self .queue
265265
@@ -303,7 +303,7 @@ def iter(self, **params):
303303
304304 :param \*\*params: (optional) additional query params for the request.
305305 :return: an iterator over fingerprints.
306- :rtype: collections.Iterable[str]
306+ :rtype: :class:` collections.Iterable[str]`
307307 """
308308 origin = self ._frontier ._frontiers ._origin
309309 path = (self ._frontier .key , 's' , self .key , 'f' )
@@ -315,7 +315,7 @@ def list(self, **params):
315315
316316 :param \*\*params: (optional) additional query params for the request.
317317 :return: a list of fingerprints.
318- :rtype: List [str]
318+ :rtype: :class:`list [str]`
319319 """
320320 return list (self .iter (** params ))
321321
@@ -339,7 +339,7 @@ def iter(self, mincount=None, **params):
339339 :param \*\*params: (optional) additional query params for the request.
340340 :return: an iterator over request batches in the queue where each
341341 batch is represented with a dict with ('id', 'requests') field.
342- :rtype: collections.Iterable[dict]
342+ :rtype: :class:` collections.Iterable[dict]`
343343 """
344344 origin = self ._frontier ._frontiers ._origin
345345 path = (self ._frontier .key , 's' , self .key , 'q' )
@@ -353,7 +353,7 @@ def list(self, mincount=None, **params):
353353 :param \*\*params: (optional) additional query params for the request.
354354 :return: a list of request batches in the queue where each batch
355355 is represented with a dict with ('id', 'requests') field.
356- :rtype: List [dict]
356+ :rtype: :class:`list [dict]`
357357 """
358358 return list (self .iter (mincount = mincount , ** params ))
359359
0 commit comments