aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-12-11 10:59:41 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-12-11 11:40:57 +0300
commit708e84a1342eccd8b69c761dd2916e33503a883a (patch)
treeee90cd4ab26e843c00724b957ef247cc3d1b6f9f /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py
parent425d65a76c5bda62894f93d32f1f5e32f7439539 (diff)
downloadydb-708e84a1342eccd8b69c761dd2916e33503a883a.tar.gz
Update contrib/python/prompt-toolkit/py3 to 3.0.41
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py
index cb036cc842..c13960bc43 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py
@@ -449,7 +449,7 @@ class FormattedTextControl(UIControl):
# Handler found. Call it.
# (Handler can return NotImplemented, so return
# that result.)
- handler = item[2] # type: ignore
+ handler = item[2]
return handler(mouse_event)
else:
break
@@ -477,9 +477,7 @@ class DummyControl(UIControl):
def get_line(i: int) -> StyleAndTextTuples:
return []
- return UIContent(
- get_line=get_line, line_count=100**100
- ) # Something very big.
+ return UIContent(get_line=get_line, line_count=100**100) # Something very big.
def is_focusable(self) -> bool:
return False