From 2ab78d99bc9a63b6c95b5efbe0e3f325f6c178b3 Mon Sep 17 00:00:00 2001 From: Linlang Date: Mon, 30 Jun 2025 12:50:52 +0800 Subject: [PATCH 1/4] disable pylint error --- qlib/data/dataset/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/data/dataset/handler.py b/qlib/data/dataset/handler.py index 551b43a9814..b6ee9579478 100644 --- a/qlib/data/dataset/handler.py +++ b/qlib/data/dataset/handler.py @@ -40,7 +40,7 @@ class DataHandlerABC(Serializable): So leaving the flexibility to the user to implement the workflow is a more reasonable choice. """ - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs): # pylint: disable=W0246 """ We should define how to get ready for the fetching. """ From 9013b5ad3dbd16fb13c721bb7e7cee55c85c14e6 Mon Sep 17 00:00:00 2001 From: Linlang Date: Mon, 30 Jun 2025 16:13:41 +0800 Subject: [PATCH 2/4] try fix build docs error --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ada0071cfcd..e4a6a7fb4f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,10 @@ dependencies = [ "lightgbm", "gym", "cvxpy", + # After upgrading scipy to version 1.16.0, + # we encountered ImportError: cannot import name '_lazywhere', in the build documentation, + # so we restricted the version of scipy to: 1.15.3 + "scipy<=1.15.3" "joblib", "matplotlib", "jupyter", From a55435dab6b2e0bbcf4e971c8bd78c27ad7aaa8f Mon Sep 17 00:00:00 2001 From: Linlang Date: Mon, 30 Jun 2025 16:16:33 +0800 Subject: [PATCH 3/4] try fix build docs error --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e4a6a7fb4f4..c10134f5f21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ # After upgrading scipy to version 1.16.0, # we encountered ImportError: cannot import name '_lazywhere', in the build documentation, # so we restricted the version of scipy to: 1.15.3 - "scipy<=1.15.3" + "scipy<=1.15.3", "joblib", "matplotlib", "jupyter", From 9820af5ef87390ff735c28f02e8df8d5d16ff909 Mon Sep 17 00:00:00 2001 From: Linlang Date: Mon, 30 Jun 2025 17:32:06 +0800 Subject: [PATCH 4/4] optimize code --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c10134f5f21..4409fa71925 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,10 +40,6 @@ dependencies = [ "lightgbm", "gym", "cvxpy", - # After upgrading scipy to version 1.16.0, - # we encountered ImportError: cannot import name '_lazywhere', in the build documentation, - # so we restricted the version of scipy to: 1.15.3 - "scipy<=1.15.3", "joblib", "matplotlib", "jupyter", @@ -74,6 +70,10 @@ lint = [ # snowballstemmer, a dependency of sphinx, was released on 2025-05-08 with version 3.0.0, # which causes errors in the build process. So we've limited the version for now. docs = [ + # After upgrading scipy to version 1.16.0, + # we encountered ImportError: cannot import name '_lazywhere', in the build documentation, + # so we restricted the version of scipy to: 1.15.3 + "scipy<=1.15.3", "sphinx", "sphinx_rtd_theme", "readthedocs_sphinx_ext",