Skip to content

Commit 0248662

Browse files
committed
ruff
1 parent af0184f commit 0248662

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/saluki/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ def _parse_timestamp(msg: Message) -> str:
5252
"""
5353
timestamp_type, timestamp_ms_from_epoch = msg.timestamp()
5454
if timestamp_type == 1: # TIMESTAMP_CREATE_TIME
55-
return datetime.datetime.fromtimestamp(timestamp_ms_from_epoch / 1000).strftime(
56-
'%Y-%m-%d %H:%M:%S.%f')
55+
return datetime.datetime.fromtimestamp(timestamp_ms_from_epoch / 1000).strftime(
56+
"%Y-%m-%d %H:%M:%S.%f"
57+
)
5758
else:
5859
# TIMESTAMP_NOT_AVAILABLE or TIMESTAMP_LOG_APPEND_TIME
5960
return "Unknown"

0 commit comments

Comments
 (0)