diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-18 08:04:41 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-18 08:04:41 +0100 |
commit | 73749091aec9b2e7780a4f913268bcfc73e86e1e (patch) | |
tree | a11f1b6a5b5aee20425f012b9f927a17fc5e5e9f /poezio/text_buffer.py | |
parent | 2abbf8274ca3e8473ea2ef729459fc6549edf474 (diff) | |
download | poezio-73749091aec9b2e7780a4f913268bcfc73e86e1e.tar.gz poezio-73749091aec9b2e7780a4f913268bcfc73e86e1e.tar.bz2 poezio-73749091aec9b2e7780a4f913268bcfc73e86e1e.tar.xz poezio-73749091aec9b2e7780a4f913268bcfc73e86e1e.zip |
Remove some circular type imports.
Diffstat (limited to 'poezio/text_buffer.py')
-rw-r--r-- | poezio/text_buffer.py | 7 |
1 files changed, 3 insertions, 4 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): |