Skip to content

Commit ec56406

Browse files
committed
fix formatting
1 parent 5ba14ea commit ec56406

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

ydb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from .import_client import * # noqa
1919
from .tracing import * # noqa
2020
from .topic import * # noqa
21-
import ydb.draft # noqa
21+
import ydb.draft # noqa
2222

2323
try:
2424
import ydb.aio as aio # noqa

ydb/draft/dynamic_config.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, version, cluster, config, *args, **kwargs):
3636

3737

3838
class NodeLabels(object):
39-
__slots__ = ("labels")
39+
__slots__ = "labels"
4040

4141
def __init__(self, labels, *args, **kwargs):
4242
self.labels = labels
@@ -71,13 +71,7 @@ def _get_node_labels_request_factory(node_id):
7171

7272
def _wrap_dynamic_config(config_pb, dynamic_config_cls=None, *args, **kwargs):
7373
dynamic_config_cls = DynamicConfig if dynamic_config_cls is None else dynamic_config_cls
74-
return dynamic_config_cls(
75-
config_pb.identity.version,
76-
config_pb.identity.cluster,
77-
config_pb.config,
78-
*args,
79-
**kwargs
80-
)
74+
return dynamic_config_cls(config_pb.identity.version, config_pb.identity.cluster, config_pb.config, *args, **kwargs)
8175

8276

8377
def _wrap_get_config_response(rpc_state, response):
@@ -89,11 +83,7 @@ def _wrap_get_config_response(rpc_state, response):
8983

9084
def _wrap_node_labels(labels_pb, node_labels_cls=None, *args, **kwargs):
9185
node_labels_cls = NodeLabels if node_labels_cls is None else node_labels_cls
92-
return node_labels_cls(
93-
dict([(entry.label, entry.value) for entry in labels_pb.labels]),
94-
*args,
95-
**kwargs
96-
)
86+
return node_labels_cls(dict([(entry.label, entry.value) for entry in labels_pb.labels]), *args, **kwargs)
9787

9888

9989
def _wrap_get_node_labels_response(rpc_state, response):

0 commit comments

Comments
 (0)