1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 14:56:55 +08:00

Use literal syntax to create data structure

Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
shubhendra
2021-03-06 13:01:04 +05:30
parent 5015d218ff
commit a62d1a1b36
2 changed files with 3 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ def get_cls_kwargs(config: Union[dict, str], module) -> (type, dict):
def init_instance_by_config(
config: Union[str, dict, object], module=None, accept_types: Union[type, Tuple[type]] = tuple([]), **kwargs
config: Union[str, dict, object], module=None, accept_types: Union[type, Tuple[type]] = (), **kwargs
) -> object:
"""
get initialized instance with config