We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed95df commit 24df239Copy full SHA for 24df239
singlestoredb/functions/ext/wasm/udf_handler.py
@@ -22,6 +22,7 @@
22
from typing import Callable
23
from typing import Dict
24
from typing import List
25
+from typing import Optional
26
27
28
# Install numpy stub before importing singlestoredb (which tries to import numpy)
@@ -58,7 +59,7 @@ class _TracingFormatter(logging.Formatter):
58
59
'CRITICAL': '\033[31m', # red
60
}
61
- def formatTime(self, record: logging.LogRecord, datefmt: str | None = None) -> str:
62
+ def formatTime(self, record: logging.LogRecord, datefmt: Optional[str] = None) -> str:
63
from datetime import datetime, timezone
64
dt = datetime.fromtimestamp(record.created, tz=timezone.utc)
65
return dt.strftime('%Y-%m-%dT%H:%M:%S.') + f'{dt.microsecond:06d}Z'
0 commit comments