aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py')
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py96
1 files changed, 48 insertions, 48 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
index 4e5e4aafdd..f5431aa02e 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
@@ -1,51 +1,51 @@
-from typing import Callable, Optional
-
-from prompt_toolkit.formatted_text import AnyFormattedText
-from prompt_toolkit.input import DummyInput
-from prompt_toolkit.output import DummyOutput
-
-from .application import Application
-
-__all__ = [
- "DummyApplication",
-]
-
-
-class DummyApplication(Application[None]):
- """
- When no :class:`.Application` is running,
- :func:`.get_app` will run an instance of this :class:`.DummyApplication` instead.
- """
-
- def __init__(self) -> None:
- super().__init__(output=DummyOutput(), input=DummyInput())
-
- def run(
- self,
- pre_run: Optional[Callable[[], None]] = None,
- set_exception_handler: bool = True,
+from typing import Callable, Optional
+
+from prompt_toolkit.formatted_text import AnyFormattedText
+from prompt_toolkit.input import DummyInput
+from prompt_toolkit.output import DummyOutput
+
+from .application import Application
+
+__all__ = [
+ "DummyApplication",
+]
+
+
+class DummyApplication(Application[None]):
+ """
+ When no :class:`.Application` is running,
+ :func:`.get_app` will run an instance of this :class:`.DummyApplication` instead.
+ """
+
+ def __init__(self) -> None:
+ super().__init__(output=DummyOutput(), input=DummyInput())
+
+ def run(
+ self,
+ pre_run: Optional[Callable[[], None]] = None,
+ set_exception_handler: bool = True,
handle_sigint: bool = True,
- in_thread: bool = False,
- ) -> None:
- raise NotImplementedError("A DummyApplication is not supposed to run.")
-
- async def run_async(
- self,
- pre_run: Optional[Callable[[], None]] = None,
- set_exception_handler: bool = True,
+ in_thread: bool = False,
+ ) -> None:
+ raise NotImplementedError("A DummyApplication is not supposed to run.")
+
+ async def run_async(
+ self,
+ pre_run: Optional[Callable[[], None]] = None,
+ set_exception_handler: bool = True,
handle_sigint: bool = True,
slow_callback_duration: float = 0.5,
- ) -> None:
- raise NotImplementedError("A DummyApplication is not supposed to run.")
-
- async def run_system_command(
- self,
- command: str,
- wait_for_enter: bool = True,
- display_before_text: AnyFormattedText = "",
- wait_text: str = "",
- ) -> None:
- raise NotImplementedError
-
- def suspend_to_background(self, suspend_group: bool = True) -> None:
- raise NotImplementedError
+ ) -> None:
+ raise NotImplementedError("A DummyApplication is not supposed to run.")
+
+ async def run_system_command(
+ self,
+ command: str,
+ wait_for_enter: bool = True,
+ display_before_text: AnyFormattedText = "",
+ wait_text: str = "",
+ ) -> None:
+ raise NotImplementedError
+
+ def suspend_to_background(self, suspend_group: bool = True) -> None:
+ raise NotImplementedError