aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-28 14:46:28 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-28 14:46:28 +0300
commit86568a9d1590ec529af95a7e16fb889b09162ed9 (patch)
treedbad39b76dcca72fd5551a0f782f6ad2a2bcd199 /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout
parente6eedf7496d3741c2226a52ac25b12851b331112 (diff)
downloadydb-86568a9d1590ec529af95a7e16fb889b09162ed9.tar.gz
intermediate changes
ref:8cc96053e249b790770c75de97ccbea86351cff2
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/layout')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py3
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py
index 8218f74107..24d6e46af0 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py
@@ -7,6 +7,7 @@ from typing import (
Iterable,
List,
Optional,
+ Sequence,
Tuple,
TypeVar,
Union,
@@ -406,7 +407,7 @@ class MultiColumnCompletionMenuControl(UIControl):
def grouper(
n: int, iterable: Iterable[_T], fillvalue: Optional[_T] = None
- ) -> Iterable[List[_T]]:
+ ) -> Iterable[Sequence[Optional[_T]]]:
"grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
args = [iter(iterable)] * n
return zip_longest(fillvalue=fillvalue, *args)
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py
index 5d27ab26c9..8874fba6f8 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/screen.py
@@ -61,6 +61,7 @@ class Char:
"\x1b": "^[", # Escape
"\x1c": "^\\",
"\x1d": "^]",
+ "\x1e": "^^",
"\x1f": "^_",
"\x7f": "^?", # ASCII Delete (backspace).
# Special characters. All visualized like Vim does.