@@ -36,7 +36,7 @@ def __init__(self, version, cluster, config, *args, **kwargs):
3636
3737
3838class 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
7272def _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
8377def _wrap_get_config_response (rpc_state , response ):
@@ -89,11 +83,7 @@ def _wrap_get_config_response(rpc_state, response):
8983
9084def _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
9989def _wrap_get_node_labels_response (rpc_state , response ):
0 commit comments