Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
✨ Example for Textualize/textual#4088
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Feb 2, 2024
1 parent 0feeffd commit 8e3c342
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions await_type_warning.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e3c342

Please sign in to comment.