@@ -70,7 +70,7 @@ class Server(object):
70
70
def __init__ (self , url = DEFAULT_BASE_URL , full_commit = True , session = None ):
71
71
"""Initialize the server object.
72
72
73
- :param uri : the URI of the server (for example
73
+ :param url : the URI of the server (for example
74
74
``http://localhost:5984/``)
75
75
:param full_commit: turn on the X-Couch-Full-Commit header
76
76
:param session: an http.Session instance or None for a default session
@@ -144,7 +144,7 @@ def config(self):
144
144
options from the configuration files of the server, or the default
145
145
values for options that are not explicitly configured.
146
146
147
- :type : `dict`
147
+ :rtype : `dict`
148
148
"""
149
149
status , headers , data = self .resource .get_json ('_config' )
150
150
return data
@@ -155,7 +155,7 @@ def version(self):
155
155
Note that this results in a request being made, and can also be used
156
156
to check for the availability of the server.
157
157
158
- :type : `unicode`"""
158
+ :rtype : `unicode`"""
159
159
status , headers , data = self .resource .get_json ()
160
160
return data ['version' ]
161
161
@@ -327,7 +327,7 @@ def name(self):
327
327
Note that this may require a request to the server unless the name has
328
328
already been cached by the `info()` method.
329
329
330
- :type : basestring
330
+ :rtype : basestring
331
331
"""
332
332
if self ._name is None :
333
333
self .info ()
@@ -797,15 +797,15 @@ def __repr__(self):
797
797
def id (self ):
798
798
"""The document ID.
799
799
800
- :type : basestring
800
+ :rtype : basestring
801
801
"""
802
802
return self ['_id' ]
803
803
804
804
@property
805
805
def rev (self ):
806
806
"""The document revision.
807
807
808
- :type : basestring
808
+ :rtype : basestring
809
809
"""
810
810
return self ['_rev' ]
811
811
@@ -980,7 +980,7 @@ def _fetch(self):
980
980
def rows (self ):
981
981
"""The list of rows returned by the view.
982
982
983
- :type : `list`
983
+ :rtype : `list`
984
984
"""
985
985
if self ._rows is None :
986
986
self ._fetch ()
@@ -992,7 +992,7 @@ def total_rows(self):
992
992
993
993
This value is `None` for reduce views.
994
994
995
- :type : `int` or ``NoneType`` for reduce views
995
+ :rtype : `int` or ``NoneType`` for reduce views
996
996
"""
997
997
if self ._rows is None :
998
998
self ._fetch ()
@@ -1004,7 +1004,7 @@ def offset(self):
1004
1004
1005
1005
This value is 0 for reduce views.
1006
1006
1007
- :type : `int`
1007
+ :rtype : `int`
1008
1008
"""
1009
1009
if self ._rows is None :
1010
1010
self ._fetch ()
0 commit comments