Skip to content

Commit cb1a676

Browse files
committed
Use raw strings in some docstrings to avoid SyntaxWarning in Python 3.12 .
1 parent 622523b commit cb1a676

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cassandra/cqlengine/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def setup(
315315
lazy_connect=False,
316316
retry_connect=False,
317317
**kwargs):
318-
"""
318+
r"""
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`)

cassandra/cqlengine/query.py

Lines changed: 2 additions & 2 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-
"""Add a function and arguments to be passed to it to be executed after the batch executes.
199+
r"""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
@@ -272,7 +272,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
272272

273273

274274
class ContextQuery(object):
275-
"""
275+
r"""
276276
A Context manager to allow a Model to switch context easily. Presently, the context only
277277
specifies a keyspace for model IO.
278278

0 commit comments

Comments
 (0)