Add a docstring to _on_remove

This commit is contained in:
Dave Pearson
2022-11-09 16:32:02 +00:00
parent f34d53ebb3
commit 1f8aaf56d5

View File

@@ -1824,6 +1824,11 @@ class App(Generic[ReturnType], DOMNode):
await self.screen.post_message(event)
async def _on_remove(self, event: events.Remove) -> None:
"""Handle a remove event.
Args:
event (events.Remove): The remove event.
"""
# We've been given a list of widgets to remove, but removing those
# will also result in other (descendent) widgets being removed. So