aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py
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/buffer.py
parente6eedf7496d3741c2226a52ac25b12851b331112 (diff)
downloadydb-86568a9d1590ec529af95a7e16fb889b09162ed9.tar.gz
intermediate changes
ref:8cc96053e249b790770c75de97ccbea86351cff2
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py
index ec2d3ba91c..6c006a258b 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/buffer.py
@@ -17,6 +17,7 @@ from typing import (
Any,
Awaitable,
Callable,
+ Coroutine,
Deque,
Iterable,
List,
@@ -1692,7 +1693,7 @@ class Buffer:
)
)
- def _create_completer_coroutine(self) -> Callable[..., Awaitable[None]]:
+ def _create_completer_coroutine(self) -> Callable[..., Coroutine[Any, Any, None]]:
"""
Create function for asynchronous autocompletion.
@@ -1822,7 +1823,7 @@ class Buffer:
return async_completer
- def _create_auto_suggest_coroutine(self) -> Callable[[], Awaitable[None]]:
+ def _create_auto_suggest_coroutine(self) -> Callable[[], Coroutine[Any, Any, None]]:
"""
Create function for asynchronous auto suggestion.
(This can be in another thread.)
@@ -1849,7 +1850,9 @@ class Buffer:
return async_suggestor
- def _create_auto_validate_coroutine(self) -> Callable[[], Awaitable[None]]:
+ def _create_auto_validate_coroutine(
+ self,
+ ) -> Callable[[], Coroutine[Any, Any, None]]:
"""
Create a function for asynchronous validation while typing.
(This can be in another thread.)