Skip to content

Commit

Permalink
p4
Browse files Browse the repository at this point in the history
  • Loading branch information
sitingren committed Nov 24, 2023
1 parent 2d3c3b2 commit 39f6614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vertica_python/vertica/deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def load_time_text(val: bytes, ctx) -> time:
return datetime.strptime(val, '%H:%M:%S').time()
return datetime.strptime(val, '%H:%M:%S.%f').time()

def load_time_binary(val: bytes, ctx):
def load_time_binary(val: bytes, ctx) -> time:
"""
Parses binary representation of a TIME type.
:param val: bytes
Expand All @@ -180,7 +180,7 @@ def load_time_binary(val: bytes, ctx):
except ValueError:
raise errors.NotSupportedError("Time not supported by datetime.time. Got: hour={}".format(hour))

def load_timetz_text(val, ctx):
def load_timetz_text(val: bytes, ctx) -> time:
"""
Parses text representation of a TIMETZ type.
:param val: bytes
Expand Down

0 comments on commit 39f6614

Please sign in to comment.