Skip to content

Commit

Permalink
Merge pull request #428 Add missing returns to time converters from v…
Browse files Browse the repository at this point in the history
…gvoleg/patch-1
  • Loading branch information
rekby authored Jun 6, 2024
2 parents 54fbcce + 1402606 commit 4c76cb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ydb/_grpc/grpcwrapper/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def proto_duration_from_timedelta(t: Optional[datetime.timedelta]) -> Optional[P

res = ProtoDuration()
res.FromTimedelta(t)
return res


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

res = ProtoTimeStamp()
res.FromDatetime(t)
return res


def datetime_from_proto_timestamp(
Expand Down

0 comments on commit 4c76cb2

Please sign in to comment.