chore: bump ruff target-version to 3.10
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from datetime import timedelta
|
||||
from typing import NamedTuple, Optional
|
||||
from typing import NamedTuple
|
||||
|
||||
from pandas import DataFrame
|
||||
|
||||
@@ -20,7 +20,7 @@ class BTrade(NamedTuple):
|
||||
exit_reason: ExitType
|
||||
open_tick: int
|
||||
close_tick: int
|
||||
enter_tag: Optional[str] = None
|
||||
enter_tag: str | None = None
|
||||
is_short: bool = False
|
||||
|
||||
|
||||
@@ -36,15 +36,15 @@ class BTContainer(NamedTuple):
|
||||
profit_perc: float
|
||||
trailing_stop: bool = False
|
||||
trailing_only_offset_is_reached: bool = False
|
||||
trailing_stop_positive: Optional[float] = None
|
||||
trailing_stop_positive: float | None = None
|
||||
trailing_stop_positive_offset: float = 0.0
|
||||
use_exit_signal: bool = False
|
||||
use_custom_stoploss: bool = False
|
||||
custom_entry_price: Optional[float] = None
|
||||
custom_exit_price: Optional[float] = None
|
||||
custom_entry_price: float | None = None
|
||||
custom_exit_price: float | None = None
|
||||
leverage: float = 1.0
|
||||
timeout: Optional[int] = None
|
||||
adjust_entry_price: Optional[float] = None
|
||||
timeout: int | None = None
|
||||
adjust_entry_price: float | None = None
|
||||
|
||||
|
||||
def _get_frame_time_from_offset(offset):
|
||||
|
||||
Reference in New Issue
Block a user