mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-26 00:40:23 +00:00
chore: adjust type-ignores for new mypy version
This commit is contained in:
@@ -331,7 +331,9 @@ def process_entry_exit_reasons(config: Config):
|
||||
exit_only = config.get("exit_only", False)
|
||||
do_rejected = config.get("analysis_rejected", False)
|
||||
to_csv = config.get("analysis_to_csv", False)
|
||||
csv_path = Path(config.get("analysis_csv_path", config["exportfilename"]))
|
||||
csv_path = Path(
|
||||
config.get("analysis_csv_path", config["exportfilename"]), # type: ignore[arg-type]
|
||||
)
|
||||
|
||||
if entry_only is True and exit_only is True:
|
||||
raise OperationalException(
|
||||
|
||||
@@ -76,7 +76,10 @@ class Binance(Exchange):
|
||||
:return: Proxy coin or stake currency
|
||||
"""
|
||||
if self.margin_mode == MarginMode.CROSS:
|
||||
return self._config.get("proxy_coin", self._config["stake_currency"])
|
||||
return self._config.get(
|
||||
"proxy_coin",
|
||||
self._config["stake_currency"],
|
||||
) # type: ignore[return-value]
|
||||
return self._config["stake_currency"]
|
||||
|
||||
def get_tickers(
|
||||
|
||||
@@ -101,7 +101,7 @@ class ReinforcementLearner(BaseReinforcementLearningModel):
|
||||
|
||||
return model
|
||||
|
||||
MyRLEnv: type[BaseEnvironment]
|
||||
MyRLEnv: type[BaseEnvironment] # type: ignore[assignment, unused-ignore]
|
||||
|
||||
class MyRLEnv(Base5ActionRLEnv): # type: ignore[no-redef]
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user