Browse Source

[14350] Fixing linter errors

pull/14352/head
Andrii Kysylevskyi 8 months ago
parent
commit
36fa7ac2ab
  1. 5
      docs_src/nosql_databases/tutorial001.py
  2. 5
      docs_src/nosql_databases/tutorial001_scylla.py

5
docs_src/nosql_databases/tutorial001.py

@ -22,7 +22,10 @@ class Task(TaskBase):
class CassandraConnection: class CassandraConnection:
def __init__(self, hosts=["cassandra"], port=9042): def __init__(self, hosts=None, port=9042):
if hosts is None:
hosts = ["cassandra"]
self.cluster = Cluster(hosts, port=port) self.cluster = Cluster(hosts, port=port)
self.session = None self.session = None
self.keyspace = "task_manager" self.keyspace = "task_manager"

5
docs_src/nosql_databases/tutorial001_scylla.py

@ -22,7 +22,10 @@ class Task(TaskBase):
class ScyllaDBConnection: class ScyllaDBConnection:
def __init__(self, hosts=["scylladb"], port=9042): def __init__(self, hosts=None, port=9042):
if hosts is None:
hosts = ["scylladb"]
self.cluster = Cluster(hosts, port=port) self.cluster = Cluster(hosts, port=port)
self.session = None self.session = None
self.keyspace = "task_manager" self.keyspace = "task_manager"

Loading…
Cancel
Save