summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/text_buffer.py7
-rw-r--r--poezio/windows/info_bar.py9
2 files changed, 7 insertions, 9 deletions
diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py
index 1a2c073b..448adff3 100644
--- a/poezio/text_buffer.py
+++ b/poezio/text_buffer.py
@@ -15,7 +15,6 @@ from typing import Union, Optional, List, Tuple
from datetime import datetime
from poezio.config import config
from poezio.theming import get_theme, dump_tuple
-from poezio.windows import BaseTextWin
class Message:
@@ -127,9 +126,9 @@ class TextBuffer:
# we keep track of one or more windows
# so we can pass the new messages to them, as they are added, so
# they (the windows) can build the lines from the new message
- self._windows = [] # type: List[BaseTextWin]
+ self._windows = []
- def add_window(self, win: BaseTextWin) -> None:
+ def add_window(self, win) -> None:
self._windows.append(win)
@property
@@ -278,7 +277,7 @@ class TextBuffer:
log.debug('Replacing message %s with %s.', old_id, new_id)
return message
- def del_window(self, win: BaseTextWin) -> None:
+ def del_window(self, win) -> None:
self._windows.remove(win)
def __del__(self):
diff --git a/poezio/windows/info_bar.py b/poezio/windows/info_bar.py
index 033f78aa..96382d0f 100644
--- a/poezio/windows/info_bar.py
+++ b/poezio/windows/info_bar.py
@@ -11,15 +11,14 @@ log = logging.getLogger(__name__)
import curses
from poezio.config import config
-from poezio.core import Core
from poezio.windows.base_wins import Win
from poezio.theming import get_theme, to_curses_attr
class GlobalInfoBar(Win):
- def __init__(self, core: Core) -> None:
+ def __init__(self, core) -> None:
Win.__init__(self)
- self.core = core # type: Core
+ self.core = core
def refresh(self) -> None:
log.debug('Refresh: %s', self.__class__.__name__)
@@ -64,9 +63,9 @@ class GlobalInfoBar(Win):
class VerticalGlobalInfoBar(Win):
- def __init__(self, core: Core, scr) -> None:
+ def __init__(self, core, scr) -> None:
Win.__init__(self)
- self.core = core # type: Core
+ self.core = core
self._win = scr
def refresh(self) -> None: