aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
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.py51
1 files changed, 0 insertions, 51 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
deleted file mode 100644
index 4e5e4aafdd..0000000000
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/dummy.py
+++ /dev/null
@@ -1,51 +0,0 @@
-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,
- 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