Skip to content

Commit a5fd5e6

Browse files
committed
Merge branch 'dev' of https://github.com/Tim-ats-d/Visual-dialog into dev
2 parents 154557f + 990c639 commit a5fd5e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

visualdialog/dialog.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import curses
77
import random
88
import textwrap
9-
from typing import (Any, Callable, Iterable, List, Mapping, Sequence, Tuple,
10-
Union)
9+
from typing import (Any, Callable, Iterable, List, Mapping, Optional, Sequence,
10+
Tuple, Union)
1111

1212
from .box import BaseTextBox
1313
from .type import CursesTextAttribute, CursesTextAttributes, CursesWindow
@@ -302,7 +302,8 @@ def _write_word_char_by_char(self,
302302
word: str,
303303
delay: int,
304304
random_delay: Sequence[int],
305-
callbacks: Iterable[Callable]):
305+
callbacks: Iterable[Callable[[BaseTextBox, str, str],
306+
Optional[Any]]]):
306307
"""Write word char by char at given positon."""
307308
for x, char in enumerate(word):
308309
win.addstr(pos_y,
@@ -330,7 +331,7 @@ def _write_word(self,
330331
word: str,
331332
delay: int,
332333
random_delay: Sequence[int],
333-
callbacks: Iterable[Callable]):
334+
callbacks: Iterable[Callable[[BaseTextBox, str], Optional[Any]]]):
334335
"""Write word at given position."""
335336
win.addstr(pos_y,
336337
pos_x,

0 commit comments

Comments
 (0)