From 8e3c342aabf8e4315c2a6040fb97af4dc5119409 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Fri, 2 Feb 2024 09:11:51 +0000 Subject: [PATCH] :sparkles: Example for https://github.com/Textualize/textual/issues/4088 --- await_type_warning.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 await_type_warning.py diff --git a/await_type_warning.py b/await_type_warning.py new file mode 100644 index 0000000..a61ae5d --- /dev/null +++ b/await_type_warning.py @@ -0,0 +1,12 @@ +"""https://github.com/Textualize/textual/issues/4088""" + +from textual.app import App +from textual.widgets import TabbedContent, TabPane + +class AwaitableTypeWarningApp(App[None]): + + async def on_mount(self) -> None: + await self.query_one(TabbedContent).add_pane(TabPane("Test")) + await self.query_one(TabbedContent).remove_pane("some-tab") + +### await_type_warning.py ends here