From 867cc01a0bc0d2bc765e648b1c2ad7494802e713 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Tue, 23 Sep 2025 14:46:41 +0400 Subject: [PATCH] [curses] Revert Final for LINES and COLS (#14764) --- stdlib/curses/__init__.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stdlib/curses/__init__.pyi b/stdlib/curses/__init__.pyi index 2c0231c13..3e32487ad 100644 --- a/stdlib/curses/__init__.pyi +++ b/stdlib/curses/__init__.pyi @@ -14,8 +14,9 @@ _T = TypeVar("_T") _P = ParamSpec("_P") # available after calling `curses.initscr()` -LINES: Final[int] -COLS: Final[int] +# not `Final` as it can change during the terminal resize: +LINES: int +COLS: int # available after calling `curses.start_color()` COLORS: Final[int]