From bacd74657f8a31bbb96d59e7d79a1f890e406581 Mon Sep 17 00:00:00 2001 From: lostleaf Date: Mon, 28 Oct 2019 19:51:24 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E5=A4=8D=20init=5Fcli=5Ftradi?= =?UTF-8?q?ng=20=E7=9A=84=20type=20hint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/app/script_trader/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/app/script_trader/cli.py b/vnpy/app/script_trader/cli.py index a68a76cb..b6935abf 100644 --- a/vnpy/app/script_trader/cli.py +++ b/vnpy/app/script_trader/cli.py @@ -1,4 +1,4 @@ -from typing import Sequence +from typing import Sequence, Type from vnpy.event import EventEngine, Event from vnpy.trader.engine import MainEngine @@ -14,7 +14,7 @@ def process_log_event(event: Event): print(f"{log.time}\t{log.msg}") -def init_cli_trading(gateways: Sequence[BaseGateway]): +def init_cli_trading(gateways: Sequence[Type[BaseGateway]]): """""" event_engine = EventEngine() event_engine.register(EVENT_LOG, process_log_event)