Skip to content

Commit

Permalink
fix: Correct type annotation of .tui.main.loop
Browse files Browse the repository at this point in the history
- Fix: Change annotation of `.tui.main.loop` from `Loop` to
  `urwid.MainLoop`, since `Loop` is now defined within `.tui.init()`.
- Change: Remove unnecessary import of `.tui`.
  • Loading branch information
AnonymouX47 committed Jun 24, 2024
1 parent 33fda62 commit 64c2699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/termvisage/tui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from term_image.image import BaseImage
from term_image.utils import write_tty

from .. import logging, notify, tui
from .. import logging, notify
from ..config import context_keys, expand_key
from ..ctlseqs import BEL_b
from .keys import (
Expand Down Expand Up @@ -707,7 +707,7 @@ def update_screen():
# Set from `.tui.init()`
ImageClass: BaseImage
displayer: Generator[None, int, bool]
loop: tui.Loop
loop: urwid.MainLoop
update_pipe: int

# # Corresponding to (or derived directly from) command-line args and/or config options
Expand Down

0 comments on commit 64c2699

Please sign in to comment.