From 9bf8c999e67520a45ad4bf1b0351ec311debb2ec Mon Sep 17 00:00:00 2001 From: v-mingzhehan Date: Tue, 20 Jul 2021 06:14:40 +0000 Subject: [PATCH] type checking update --- qlib/strategy/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qlib/strategy/base.py b/qlib/strategy/base.py index fa21fae5f..7a267b511 100644 --- a/qlib/strategy/base.py +++ b/qlib/strategy/base.py @@ -1,6 +1,9 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. -from qlib.backtest.exchange import Exchange +from __future__ import annotations +from typing import TYPE_CHECKING +if TYPE_CHECKING: + from qlib.backtest.exchange import Exchange from qlib.backtest.position import BasePosition from typing import List, Tuple, Union