Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Apr 20, 2024
1 parent 6a1ca75 commit 3d4250c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/util/datetime_helpers.py
@@ -1,6 +1,6 @@
import re
from datetime import datetime, timezone
from typing import Optional
from typing import Optional, Union

import arrow

Expand Down Expand Up @@ -96,7 +96,7 @@ def format_date(date: Optional[datetime]) -> str:
return ''


def format_ms_time(date: int) -> str:
def format_ms_time(date: Union[int, float]) -> str:
"""
convert MS date to readable format.
: epoch-string in ms
Expand Down

0 comments on commit 3d4250c

Please sign in to comment.