Skip to content

Commit 1a6e7aa

Browse files
committed
Remove duplicate docstring and add missing Cluster args
1 parent 04a9020 commit 1a6e7aa

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

cassandra/cluster.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,10 @@ def __init__(self,
617617
prepare_on_all_hosts=True,
618618
reprepare_on_up=True):
619619
"""
620-
Any of the mutable Cluster attributes may be set as keyword arguments
621-
to the constructor.
620+
``executor_threads`` defines the number of threads in a pool for handling asynchronous tasks such as
621+
extablishing connection pools or refreshing metadata.
622+
623+
Any of the mutable Cluster attributes may be set as keyword arguments to the constructor.
622624
"""
623625
if contact_points is not None:
624626
if isinstance(contact_points, six.string_types):

docs/api/cassandra/cluster.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
.. autoclass:: Cluster ([contact_points=('127.0.0.1',)][, port=9042][, executor_threads=2], **attr_kwargs)
77

8-
Any of the mutable Cluster attributes may be set as keyword arguments to the constructor.
8+
.. autoattribute:: contact_points
9+
10+
.. autoattribute:: port
911

1012
.. autoattribute:: cql_version
1113

0 commit comments

Comments
 (0)