Skip to content

Commit 02a1cc5

Browse files
committed
Remove escaped asterisks from docstrings.
1 parent cb1a676 commit 02a1cc5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cassandra/cqlengine/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ def setup(
315315
lazy_connect=False,
316316
retry_connect=False,
317317
**kwargs):
318-
r"""
318+
"""
319319
Setup a the driver connection used by the mapper
320320
321321
:param list hosts: list of hosts, (``contact_points`` for :class:`cassandra.cluster.Cluster`)
322322
:param str default_keyspace: The default keyspace to use
323323
:param int consistency: The global default :class:`~.ConsistencyLevel` - default is the same as :attr:`.Session.default_consistency_level`
324324
:param bool lazy_connect: True if should not connect until first use
325325
:param bool retry_connect: True if we should retry to connect even if there was a connection failure initially
326-
:param \*\*kwargs: Pass-through keyword arguments for :class:`cassandra.cluster.Cluster`
326+
:param kwargs: Pass-through keyword arguments for :class:`cassandra.cluster.Cluster`
327327
"""
328328

329329
from cassandra.cqlengine import models

cassandra/cqlengine/query.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _execute_callbacks(self):
196196
callback(*args, **kwargs)
197197

198198
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.
200200
201201
A batch can support multiple callbacks.
202202
@@ -205,8 +205,8 @@ def add_callback(self, fn, *args, **kwargs):
205205
206206
:param fn: Callable object
207207
: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
210210
"""
211211
if not callable(fn):
212212
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):
272272

273273

274274
class ContextQuery(object):
275-
r"""
275+
"""
276276
A Context manager to allow a Model to switch context easily. Presently, the context only
277277
specifies a keyspace for model IO.
278278
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*
281281
282282
For example:
283283

0 commit comments

Comments
 (0)