From 1fcc8fedde54d3d922d837918ae2a29237110c97 Mon Sep 17 00:00:00 2001 From: pyob-bot Date: Thu, 28 May 2026 09:18:05 +0000 Subject: [PATCH] Refactor: Improve type hinting in CoreUtilsMixin --- src/pyob/core_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyob/core_utils.py b/src/pyob/core_utils.py index 6740400..cc467a0 100644 --- a/src/pyob/core_utils.py +++ b/src/pyob/core_utils.py @@ -254,7 +254,7 @@ def _get_input_with_timeout(self, timeout: int) -> str: def _win32_input(self, start_time: float, timeout: int) -> str: import msvcrt # type: ignore - input_str = "" + input_str: str = "" prev_line_len = 0 while True: remaining = int(timeout - (time.time() - start_time)) @@ -282,7 +282,7 @@ def _unix_input(self, start_time: float, timeout: int) -> str: import termios import tty - input_str = "" + input_str: str = "" fd = sys.stdin.fileno() old_settings = termios.tcgetattr(fd) try: @@ -393,7 +393,7 @@ def backup_workspace(self) -> dict[str, str]: pass return state - def restore_workspace(self, state: dict[str, str]): + def restore_workspace(self, state: dict[str, str]) -> None: for path, content in state.items(): try: with open(path, "w", encoding="utf-8") as f: