From 93ee65c5156718e252b375206336ad46d8d11144 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 26 Oct 2025 11:10:50 -0700 Subject: [PATCH] Rename variables which have been defined globally --- execute_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execute_util.py b/execute_util.py index 9789f2e..11cc793 100644 --- a/execute_util.py +++ b/execute_util.py @@ -125,6 +125,6 @@ def system_text(command: list[str]): text(output, verbatim=True) -def remove_ansi_escape_sequences(text): +def remove_ansi_escape_sequences(input_text: str) -> str: ansi_escape_pattern = re.compile(r'\x1b\[[0-9;]*m') - return ansi_escape_pattern.sub('', text) + return ansi_escape_pattern.sub('', input_text)