@@ -67,14 +67,16 @@ class SessionStart(IToProto):
6767 protection_key: bytes = b""
6868
6969 def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
70- return ydb_coordination_pb2.SessionRequest(session_start=ydb_coordination_pb2.SessionRequest.SessionStart(
71- path=self.path,
72- session_id=self.session_id,
73- timeout_millis=self.timeout_millis,
74- description=self.description,
75- seq_no=self.seq_no,
76- protection_key=self.protection_key,
77- ))
70+ return ydb_coordination_pb2.SessionRequest(
71+ session_start=ydb_coordination_pb2.SessionRequest.SessionStart(
72+ path=self.path,
73+ session_id=self.session_id,
74+ timeout_millis=self.timeout_millis,
75+ description=self.description,
76+ seq_no=self.seq_no,
77+ protection_key=self.protection_key,
78+ )
79+ )
7880
7981
8082@dataclass
@@ -89,7 +91,8 @@ class Ping(IToProto):
8991
9092 def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
9193 return ydb_coordination_pb2.SessionRequest(
92- ping=ydb_coordination_pb2.SessionRequest.PingPong(opaque=self.opaque))
94+ ping=ydb_coordination_pb2.SessionRequest.PingPong(opaque=self.opaque)
95+ )
9396
9497
9598@dataclass
@@ -100,9 +103,11 @@ class CreateSemaphore(IToProto):
100103 data: bytes = b""
101104
102105 def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
103- return ydb_coordination_pb2.SessionRequest(create_semaphore=ydb_coordination_pb2.SessionRequest.CreateSemaphore(
104- req_id=self.req_id, name=self.name, limit=self.limit, data=self.data
105- ))
106+ return ydb_coordination_pb2.SessionRequest(
107+ create_semaphore=ydb_coordination_pb2.SessionRequest.CreateSemaphore(
108+ req_id=self.req_id, name=self.name, limit=self.limit, data=self.data
109+ )
110+ )
106111
107112
108113@dataclass
@@ -112,9 +117,11 @@ class UpdateSemaphore(IToProto):
112117 data: bytes
113118
114119 def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
115- return ydb_coordination_pb2.SessionRequest(update_semaphore=ydb_coordination_pb2.SessionRequest.UpdateSemaphore(
116- req_id=self.req_id, name=self.name, data=self.data
117- ))
120+ return ydb_coordination_pb2.SessionRequest(
121+ update_semaphore=ydb_coordination_pb2.SessionRequest.UpdateSemaphore(
122+ req_id=self.req_id, name=self.name, data=self.data
123+ )
124+ )
118125
119126
120127@dataclass
@@ -124,9 +131,11 @@ class DeleteSemaphore(IToProto):
124131 force: bool = False
125132
126133 def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
127- return ydb_coordination_pb2.SessionRequest(delete_semaphore=ydb_coordination_pb2.SessionRequest.DeleteSemaphore(
128- req_id=self.req_id, name=self.name, force=self.force
129- ))
134+ return ydb_coordination_pb2.SessionRequest(
135+ delete_semaphore=ydb_coordination_pb2.SessionRequest.DeleteSemaphore(
136+ req_id=self.req_id, name=self.name, force=self.force
137+ )
138+ )
130139
131140
132141@dataclass
@@ -147,7 +156,8 @@ def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
147156 count=self.count,
148157 data=self.data,
149158 ephemeral=self.ephemeral,
150- ))
159+ )
160+ )
151161
152162
153163@dataclass
@@ -157,9 +167,9 @@ class ReleaseSemaphore(IToProto):
157167
158168 def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
159169 return ydb_coordination_pb2.SessionRequest(
160- release_semaphore=ydb_coordination_pb2.SessionRequest.ReleaseSemaphore(
161- req_id=self.req_id, name=self.name
162- ))
170+ release_semaphore=ydb_coordination_pb2.SessionRequest.ReleaseSemaphore(req_id=self.req_id, name=self.name)
171+ )
172+
163173
164174@dataclass
165175class DescribeSemaphore(IToProto):
@@ -178,7 +188,7 @@ def to_proto(self) -> ydb_coordination_pb2.SessionRequest:
178188 name=self.name,
179189 req_id=self.req_id,
180190 watch_data=self.watch_data,
181- watch_owners=self.watch_owners
191+ watch_owners=self.watch_owners,
182192 )
183193 )
184194
0 commit comments