mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Fix types
This commit is contained in:
@@ -6,8 +6,8 @@ try:
|
||||
except ModuleNotFoundError:
|
||||
from freqtrade.freqai.tensorboard.base_tensorboard import (BaseTensorBoardCallback,
|
||||
BaseTensorboardLogger)
|
||||
TBLogger = BaseTensorboardLogger
|
||||
TBCallback = BaseTensorBoardCallback
|
||||
TBLogger = BaseTensorboardLogger # type: ignore
|
||||
TBCallback = BaseTensorBoardCallback # type: ignore
|
||||
|
||||
__all__ = (
|
||||
"TBLogger",
|
||||
|
||||
@@ -43,7 +43,7 @@ def can_run_model(model: str) -> None:
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def import_fails_mac() -> None:
|
||||
def import_fails_mac():
|
||||
# Source of this test-method:
|
||||
# https://stackoverflow.com/questions/2481511/mocking-importerror-in-python
|
||||
if is_mac():
|
||||
|
||||
Reference in New Issue
Block a user