Fix types

This commit is contained in:
Matthias
2023-05-12 19:47:53 +02:00
parent 871f1aabb7
commit 400cbd1836
2 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -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():