From 1d3d45828d226ff948e8ae7cfee11ba2d7ef7a71 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 19 Aug 2026 19:00:42 +0800 Subject: [PATCH] =?UTF-8?q?style:=20ruff=20format=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/test_web_backtest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit/test_web_backtest.py b/tests/unit/test_web_backtest.py index 4274184..45edc5c 100644 --- a/tests/unit/test_web_backtest.py +++ b/tests/unit/test_web_backtest.py @@ -147,9 +147,7 @@ def test_skip_bounds_still_allows_out_of_range_values(): """skip_bounds 仍应放行超范围取值(只是不放过语义倒挂)。""" from easy_tdx.backtest.strategies import get_registry - inst = get_registry().get("ma_cross").build( - {"fast": 100, "slow": 200}, skip_bounds=True - ) + inst = get_registry().get("ma_cross").build({"fast": 100, "slow": 200}, skip_bounds=True) assert inst.p["fast"] == 100 assert inst.p["slow"] == 200