From d7f2e1a35ad2df2d5b8fefd1dc88e296cc56d8e6 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Tue, 25 Aug 2026 18:54:28 -0700 Subject: [PATCH] style: format test_cumsum_aten.py with black The Python Linting job runs `black --check .` over the whole repository and fails the build when any file is not formatted. Two call sites in this test file are split across several lines but fit on one, so black wants to rewrite them, and the job has been red on every pull request since that file was last changed. Reformat the file. No behavior change. --- tests/py/dynamo/conversion/test_cumsum_aten.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/py/dynamo/conversion/test_cumsum_aten.py b/tests/py/dynamo/conversion/test_cumsum_aten.py index ab71b4339f..5c2147e281 100644 --- a/tests/py/dynamo/conversion/test_cumsum_aten.py +++ b/tests/py/dynamo/conversion/test_cumsum_aten.py @@ -33,9 +33,7 @@ def forward(self, x): ) return - self.run_test( - Cumsum(), inputs, immutable_weights=False, use_dynamo_tracer=True - ) + self.run_test(Cumsum(), inputs, immutable_weights=False, use_dynamo_tracer=True) @parameterized.expand( [ @@ -108,10 +106,7 @@ def forward(self, x): == opt_shape[positive_dim] == max_shape[positive_dim] ) - if ( - has_static_trip_count - and not is_tensorrt_rtx_version_supported("1.7") - ): + if has_static_trip_count and not is_tensorrt_rtx_version_supported("1.7"): with self.assertRaises(UnsupportedOperatorException): self.run_test_with_dynamic_shape( Cumsum(),