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)
|
exit_only = config.get("exit_only", False)
|
||||||
do_rejected = config.get("analysis_rejected", False)
|
do_rejected = config.get("analysis_rejected", False)
|
||||||
to_csv = config.get("analysis_to_csv", 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:
|
if entry_only is True and exit_only is True:
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
|
|||||||
@@ -76,7 +76,10 @@ class Binance(Exchange):
|
|||||||
:return: Proxy coin or stake currency
|
:return: Proxy coin or stake currency
|
||||||
"""
|
"""
|
||||||
if self.margin_mode == MarginMode.CROSS:
|
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"]
|
return self._config["stake_currency"]
|
||||||
|
|
||||||
def get_tickers(
|
def get_tickers(
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class ReinforcementLearner(BaseReinforcementLearningModel):
|
|||||||
|
|
||||||
return model
|
return model
|
||||||
|
|
||||||
MyRLEnv: type[BaseEnvironment]
|
MyRLEnv: type[BaseEnvironment] # type: ignore[assignment, unused-ignore]
|
||||||
|
|
||||||
class MyRLEnv(Base5ActionRLEnv): # type: ignore[no-redef]
|
class MyRLEnv(Base5ActionRLEnv): # type: ignore[no-redef]
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user