Skip to content

Commit

Permalink
refactor: migrate from win: Any to win: curses.window in `get_arg…
Browse files Browse the repository at this point in the history
…s.py`
  • Loading branch information
mecaneer23 committed Mar 13, 2024
1 parent 3595a37 commit 71c280a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/get_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 71c280a

Please sign in to comment.