Fix type error

This commit is contained in:
Matthias
2024-04-20 08:56:41 +02:00
parent 6a1ca75a69
commit 3d4250ca99
+2 -2
View File
@@ -1,6 +1,6 @@
import re import re
from datetime import datetime, timezone from datetime import datetime, timezone
from typing import Optional from typing import Optional, Union
import arrow import arrow
@@ -96,7 +96,7 @@ def format_date(date: Optional[datetime]) -> str:
return '' return ''
def format_ms_time(date: int) -> str: def format_ms_time(date: Union[int, float]) -> str:
""" """
convert MS date to readable format. convert MS date to readable format.
: epoch-string in ms : epoch-string in ms