From 2b8d4dc3c2cb744ac27a0e78860304d6d3218073 Mon Sep 17 00:00:00 2001 From: "wangwenxi.handsome" Date: Fri, 16 Jul 2021 14:09:36 +0000 Subject: [PATCH] callable --- qlib/backtest/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/backtest/exchange.py b/qlib/backtest/exchange.py index 7733891fe..8d02e7893 100644 --- a/qlib/backtest/exchange.py +++ b/qlib/backtest/exchange.py @@ -615,7 +615,7 @@ class BaseQuote: start_time: Union[pd.Timestamp, str], end_time: Union[pd.Timestamp, str], fields: Union[str, list] = None, - method: Union[str, Callable] = None, + method: Union[str, "Callable"] = None, ): """get the specific fields of stock data during start time and end_time, and apply method to the data.