Merge pull request #10820 from freqtrade/dependabot/pip/develop/mypy-1.12.1
chore(deps-dev): bump mypy from 1.11.2 to 1.12.1
This commit is contained in:
@@ -261,8 +261,8 @@ def calculate_expectancy(trades: pd.DataFrame) -> tuple[float, float]:
|
|||||||
:return: expectancy, expectancy_ratio
|
:return: expectancy, expectancy_ratio
|
||||||
"""
|
"""
|
||||||
|
|
||||||
expectancy = 0
|
expectancy = 0.0
|
||||||
expectancy_ratio = 100
|
expectancy_ratio = 100.0
|
||||||
|
|
||||||
if len(trades) > 0:
|
if len(trades) > 0:
|
||||||
winning_trades = trades.loc[trades["profit_abs"] > 0]
|
winning_trades = trades.loc[trades["profit_abs"] > 0]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
coveralls==4.0.1
|
coveralls==4.0.1
|
||||||
ruff==0.7.0
|
ruff==0.7.0
|
||||||
mypy==1.11.2
|
mypy==1.12.1
|
||||||
pre-commit==4.0.1
|
pre-commit==4.0.1
|
||||||
pytest==8.3.3
|
pytest==8.3.3
|
||||||
pytest-asyncio==0.24.0
|
pytest-asyncio==0.24.0
|
||||||
|
|||||||
Reference in New Issue
Block a user