File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import typing
22from dataclasses import dataclass
33
4+ from .ydb_coordination_public_types import NodeConfig
5+
46if typing .TYPE_CHECKING :
57 from ..v4 .protos import ydb_coordination_pb2
68else :
1214@dataclass
1315class 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
2628class 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
You can’t perform that action at this time.
0 commit comments