@@ -196,7 +196,7 @@ def _execute_callbacks(self):
196
196
callback (* args , ** kwargs )
197
197
198
198
def add_callback (self , fn , * args , ** kwargs ):
199
- r """Add a function and arguments to be passed to it to be executed after the batch executes.
199
+ """Add a function and arguments to be passed to it to be executed after the batch executes.
200
200
201
201
A batch can support multiple callbacks.
202
202
@@ -205,8 +205,8 @@ def add_callback(self, fn, *args, **kwargs):
205
205
206
206
:param fn: Callable object
207
207
:type fn: callable
208
- :param \* args: Positional arguments to be passed to the callback at the time of execution
209
- :param \*\* kwargs: Named arguments to be passed to the callback at the time of execution
208
+ :param args: Positional arguments to be passed to the callback at the time of execution
209
+ :param kwargs: Named arguments to be passed to the callback at the time of execution
210
210
"""
211
211
if not callable (fn ):
212
212
raise ValueError ("Value for argument 'fn' is {0} and is not a callable object." .format (type (fn )))
@@ -272,12 +272,12 @@ def __exit__(self, exc_type, exc_val, exc_tb):
272
272
273
273
274
274
class ContextQuery (object ):
275
- r """
275
+ """
276
276
A Context manager to allow a Model to switch context easily. Presently, the context only
277
277
specifies a keyspace for model IO.
278
278
279
- :param \* args: One or more models. A model should be a class type, not an instance.
280
- :param \*\* kwargs: (optional) Context parameters: can be *keyspace* or *connection*
279
+ :param args: One or more models. A model should be a class type, not an instance.
280
+ :param kwargs: (optional) Context parameters: can be *keyspace* or *connection*
281
281
282
282
For example:
283
283
0 commit comments