Skip to content

Commit 4c76cb2

Browse files
authored
Merge pull request #428 Add missing returns to time converters from vgvoleg/patch-1
2 parents 54fbcce + 1402606 commit 4c76cb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/_grpc/grpcwrapper/common_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def proto_duration_from_timedelta(t: Optional[datetime.timedelta]) -> Optional[P
290290

291291
res = ProtoDuration()
292292
res.FromTimedelta(t)
293+
return res
293294

294295

295296
def proto_timestamp_from_datetime(t: Optional[datetime.datetime]) -> Optional[ProtoTimeStamp]:
@@ -298,6 +299,7 @@ def proto_timestamp_from_datetime(t: Optional[datetime.datetime]) -> Optional[Pr
298299

299300
res = ProtoTimeStamp()
300301
res.FromDatetime(t)
302+
return res
301303

302304

303305
def datetime_from_proto_timestamp(

0 commit comments

Comments
 (0)