From 30e263329fe94300dd68f7b054bfcae40f29791d Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 7 Jul 2025 01:27:02 +0800 Subject: [PATCH] Fix linting --- reproduce/Step_3.py | 7 ++++--- reproduce/Step_3_openai_compatible.py | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/reproduce/Step_3.py b/reproduce/Step_3.py index facb913e..f3aae83e 100644 --- a/reproduce/Step_3.py +++ b/reproduce/Step_3.py @@ -28,9 +28,10 @@ def run_queries_and_save_to_json( ): loop = always_get_an_event_loop() - with open(output_file, "a", encoding="utf-8") as result_file, open( - error_file, "a", encoding="utf-8" - ) as err_file: + with ( + open(output_file, "a", encoding="utf-8") as result_file, + open(error_file, "a", encoding="utf-8") as err_file, + ): result_file.write("[\n") first_entry = True diff --git a/reproduce/Step_3_openai_compatible.py b/reproduce/Step_3_openai_compatible.py index 885220fa..56159ee1 100644 --- a/reproduce/Step_3_openai_compatible.py +++ b/reproduce/Step_3_openai_compatible.py @@ -59,9 +59,10 @@ def run_queries_and_save_to_json( ): loop = always_get_an_event_loop() - with open(output_file, "a", encoding="utf-8") as result_file, open( - error_file, "a", encoding="utf-8" - ) as err_file: + with ( + open(output_file, "a", encoding="utf-8") as result_file, + open(error_file, "a", encoding="utf-8") as err_file, + ): result_file.write("[\n") first_entry = True