Skip to content

Commit aa8eaf9

Browse files
committed
fix tox -e style
1 parent 1a6e166 commit aa8eaf9

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

tests/coordination/test_coordination_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
CoordinationClient
88
)
99

10+
1011
class TestCoordination:
1112

1213
def test_coordination_alter_node(self, driver_sync: ydb.Driver):

ydb/_apis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,12 @@ class QueryService(object):
140140
ExecuteScript = "ExecuteScript"
141141
FetchScriptResults = "FetchScriptResults"
142142

143+
143144
class CoordinationService(object):
144145
Stub = ydb_coordination_v1_pb2_grpc.CoordinationServiceStub
145146

146147
Session = "Session"
147148
CreateNode = "CreateNode"
148149
AlterNode = "AlterNode"
149150
DropNode = "DropNode"
150-
DescribeNode = "DescribeNode"
151+
DescribeNode = "DescribeNode"

ydb/_grpc/grpcwrapper/ydb_coordination.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
else:
88
from ..common.protos import ydb_coordination_pb2
99

10-
from .common_utils import IToProto, IFromProto, ServerStatus
11-
from ydb.coordination import NodeConfig
10+
from .common_utils import IToProto
11+
from ydb.coordination import NodeConfig
1212

1313

1414
@dataclass
@@ -23,6 +23,7 @@ def to_proto(self) -> ydb_coordination_pb2.CreateNodeRequest:
2323
config=cfg_proto,
2424
)
2525

26+
2627
@dataclass
2728
class AlterNodeRequest(IToProto):
2829
path: str
@@ -36,7 +37,6 @@ def to_proto(self) -> ydb_coordination_pb2.AlterNodeRequest:
3637
)
3738

3839

39-
4040
@dataclass
4141
class DescribeNodeRequest(IToProto):
4242
path: str
@@ -55,5 +55,3 @@ def to_proto(self) -> ydb_coordination_pb2.DropNodeRequest:
5555
return ydb_coordination_pb2.DropNodeRequest(
5656
path=self.path,
5757
)
58-
59-

ydb/_grpc/grpcwrapper/ydb_coordination_public_types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from ..common.protos import ydb_coordination_pb2
1010

1111

12-
1312
class ConsistencyMode(Enum):
1413
UNSET = 0
1514
STRICT = 1
@@ -144,4 +143,3 @@ def to_base_request_settings(self) -> "ydb.BaseRequestSettings":
144143
brs.need_rpc_auth = self._need_rpc_auth
145144
brs.headers.extend(self._headers)
146145
return brs
147-

ydb/coordination/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"ConsistencyMode",
1616
"RateLimiterCountersMode",
1717
"CoordinationClientSettings",
18-
]
18+
]

ydb/driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from . import _utilities
1111

1212

13-
1413
logger = logging.getLogger(__name__)
1514

1615

0 commit comments

Comments
 (0)