From 71c280a64d3e31c1d26cc383afa8d40f1b11db4a Mon Sep 17 00:00:00 2001 From: Mecaneer23 <74385377+Mecaneer23@users.noreply.github.com> Date: Tue, 12 Mar 2024 22:41:59 -0500 Subject: [PATCH] refactor: migrate from `win: Any` to `win: curses.window` in `get_args.py` --- src/get_args.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/get_args.py b/src/get_args.py index a79f911..2292221 100644 --- a/src/get_args.py +++ b/src/get_args.py @@ -5,6 +5,7 @@ from typing import Any try: + from curses import window # from curses import wrapper # pyright: ignore from src.working_initscr import wrapper # pyright: ignore @@ -15,6 +16,8 @@ def wrapper(_: Any, *args: Any, **kwargs: Any) -> Any: # pylint: disable=missin _ = (args, kwargs) return _CHECKBOX_OPTIONS[1] + from src.tcurses import window + _DEFAULT_TKINTER_GUI = True # pyright: ignore[reportConstantRedefinition] from src.md_to_py import md_table_to_lines @@ -35,7 +38,7 @@ def wrapper(_: Any, *args: Any, **kwargs: Any) -> Any: # pylint: disable=missin _CHECKBOX_OPTIONS = ("🗹", "☑") -def _get_checkbox(win: Any) -> str: +def _get_checkbox(win: window) -> str: try: win.addch(0, 0, _CHECKBOX_OPTIONS[0]) win.clear()