mirror of https://github.com/tiangolo/fastapi.git
[14350] Fixing linter errors
This commit is contained in:
parent
88653cd0ba
commit
36fa7ac2ab
|
|
@ -22,7 +22,10 @@ class Task(TaskBase):
|
|||
|
||||
|
||||
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.session = None
|
||||
self.keyspace = "task_manager"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,10 @@ class Task(TaskBase):
|
|||
|
||||
|
||||
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.session = None
|
||||
self.keyspace = "task_manager"
|
||||
|
|
|
|||
Loading…
Reference in New Issue