Skip to content

Commit 290664c

Browse files
committed
Add missing docstring for _ItemsResourceProxy.get
1 parent 5cd8221 commit 290664c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scrapinghub/client/proxy.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ def _modify_iter_params(self, params):
5252

5353
class _ItemsResourceProxy(_Proxy):
5454

55-
def get(self, _key, **params):
56-
return self._origin.get(_key, **params)
55+
def get(self, key, **params):
56+
"""Get element from collection.
57+
58+
:param key: element key.
59+
:return: a dictionary with element data.
60+
:rtype: :class:`dict`
61+
"""
62+
return self._origin.get(key, **params)
5763

5864
def write(self, item):
5965
"""Write new element to collection."""

0 commit comments

Comments
 (0)