mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
Avoid unnecessary type ignore
This commit is contained in:
@@ -190,9 +190,7 @@ def get_tb_logger(model_type: str, path: Path, activate: bool) -> Any:
|
||||
|
||||
if model_type == "pytorch" and activate:
|
||||
from freqtrade.freqai.tensorboard import TBLogger
|
||||
tb_logger = TBLogger(path, activate)
|
||||
return TBLogger(path, activate)
|
||||
else:
|
||||
from freqtrade.freqai.tensorboard.base_tensorboard import BaseTensorboardLogger
|
||||
tb_logger = BaseTensorboardLogger(path, activate) # type: ignore
|
||||
|
||||
return tb_logger
|
||||
from freqtrade.freqai.tensorboard import BaseTensorboardLogger
|
||||
return BaseTensorboardLogger(path, activate)
|
||||
|
||||
Reference in New Issue
Block a user