Skip to content

Commit 6f70b24

Browse files
committed
add NodeConfig as it was before
1 parent 82ea901 commit 6f70b24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ydb/_grpc/grpcwrapper/ydb_coordination.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import typing
22
from dataclasses import dataclass
33

4+
from .ydb_coordination_public_types import NodeConfig
5+
46
if typing.TYPE_CHECKING:
57
from ..v4.protos import ydb_coordination_pb2
68
else:
@@ -12,7 +14,7 @@
1214
@dataclass
1315
class CreateNodeRequest(IToProto):
1416
path: str
15-
config: typing.Any
17+
config: typing.Optional[NodeConfig]
1618

1719
def to_proto(self) -> "ydb_coordination_pb2.CreateNodeRequest":
1820
cfg_proto = self.config.to_proto() if self.config else None
@@ -25,7 +27,7 @@ def to_proto(self) -> "ydb_coordination_pb2.CreateNodeRequest":
2527
@dataclass
2628
class AlterNodeRequest(IToProto):
2729
path: str
28-
config: typing.Any
30+
config: NodeConfig
2931

3032
def to_proto(self) -> "ydb_coordination_pb2.AlterNodeRequest":
3133
cfg_proto = self.config.to_proto() if self.config else None

0 commit comments

Comments
 (0)