From 0e09092de13cae91f90b3417fa4aa92e1f1dad21 Mon Sep 17 00:00:00 2001 From: "lin.dongzhao" <542698096@qq.com> Date: Thu, 26 Dec 2024 15:06:25 +0800 Subject: [PATCH] pr update --- rqalpha/data/bundle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rqalpha/data/bundle.py b/rqalpha/data/bundle.py index b308c9441..f7d1df51b 100644 --- a/rqalpha/data/bundle.py +++ b/rqalpha/data/bundle.py @@ -419,7 +419,8 @@ def __call__(self, path, fields, **kwargs): h5.close() -def process_init(args: Optional[Synchronized] = None, kwargs = {}): +def process_init(args: Optional[Synchronized] = None, kwargs = None): + kwargs = kwargs or {} import warnings with warnings.catch_warnings(record=True): # catch warning: rqdatac is already inited. Settings will be changed