Skip to content

Commit e62c0f4

Browse files
committed
Fix up API hints.
1 parent a4d0b2f commit e62c0f4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

couchdb/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Server(object):
7070
def __init__(self, url=DEFAULT_BASE_URL, full_commit=True, session=None):
7171
"""Initialize the server object.
7272
73-
:param uri: the URI of the server (for example
73+
:param url: the URI of the server (for example
7474
``http://localhost:5984/``)
7575
:param full_commit: turn on the X-Couch-Full-Commit header
7676
:param session: an http.Session instance or None for a default session
@@ -144,7 +144,7 @@ def config(self):
144144
options from the configuration files of the server, or the default
145145
values for options that are not explicitly configured.
146146
147-
:type: `dict`
147+
:rtype: `dict`
148148
"""
149149
status, headers, data = self.resource.get_json('_config')
150150
return data
@@ -155,7 +155,7 @@ def version(self):
155155
Note that this results in a request being made, and can also be used
156156
to check for the availability of the server.
157157
158-
:type: `unicode`"""
158+
:rtype: `unicode`"""
159159
status, headers, data = self.resource.get_json()
160160
return data['version']
161161

@@ -327,7 +327,7 @@ def name(self):
327327
Note that this may require a request to the server unless the name has
328328
already been cached by the `info()` method.
329329
330-
:type: basestring
330+
:rtype: basestring
331331
"""
332332
if self._name is None:
333333
self.info()
@@ -797,15 +797,15 @@ def __repr__(self):
797797
def id(self):
798798
"""The document ID.
799799
800-
:type: basestring
800+
:rtype: basestring
801801
"""
802802
return self['_id']
803803

804804
@property
805805
def rev(self):
806806
"""The document revision.
807807
808-
:type: basestring
808+
:rtype: basestring
809809
"""
810810
return self['_rev']
811811

@@ -980,7 +980,7 @@ def _fetch(self):
980980
def rows(self):
981981
"""The list of rows returned by the view.
982982
983-
:type: `list`
983+
:rtype: `list`
984984
"""
985985
if self._rows is None:
986986
self._fetch()
@@ -992,7 +992,7 @@ def total_rows(self):
992992
993993
This value is `None` for reduce views.
994994
995-
:type: `int` or ``NoneType`` for reduce views
995+
:rtype: `int` or ``NoneType`` for reduce views
996996
"""
997997
if self._rows is None:
998998
self._fetch()
@@ -1004,7 +1004,7 @@ def offset(self):
10041004
10051005
This value is 0 for reduce views.
10061006
1007-
:type: `int`
1007+
:rtype: `int`
10081008
"""
10091009
if self._rows is None:
10101010
self._fetch()

couchdb/mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def _set_id(self, value):
323323
def rev(self):
324324
"""The document revision.
325325
326-
:type: basestring
326+
:rtype: basestring
327327
"""
328328
if hasattr(self._data, 'rev'): # When data is client.Document
329329
return self._data.rev

0 commit comments

Comments
 (0)