From 2bfe7df52401da082214de53813a10a56888af2d Mon Sep 17 00:00:00 2001 From: darrenburns Date: Wed, 12 Apr 2023 11:16:59 +0100 Subject: [PATCH] Add docstring to action_check_bindings (#2266) * Add docstring to action_check_bindings * Use action docstring convention --- src/textual/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/textual/app.py b/src/textual/app.py index 1399d97f5..bec6fe0d6 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -2448,6 +2448,7 @@ class App(Generic[ReturnType], DOMNode): self._unregister(root) async def action_check_bindings(self, key: str) -> None: + """An [action](/guide/actions) to handle a key press using the binding system.""" if not await self.check_bindings(key, priority=True): await self.check_bindings(key, priority=False) @@ -2455,9 +2456,6 @@ class App(Generic[ReturnType], DOMNode): """An [action](/guide/actions) to quit the app as soon as possible.""" self.exit() - async def action_bang(self) -> None: - 1 / 0 - async def action_bell(self) -> None: """An [action](/guide/actions) to play the terminal 'bell'.""" self.bell()