Tidy up some empty yields

This commit is contained in:
Dave Pearson
2022-11-03 16:34:54 +00:00
parent d528e00915
commit 9b85a433dd
5 changed files with 5 additions and 10 deletions

View File

@@ -158,8 +158,7 @@ class ChopsUpdate:
yield new_line
def __rich_repr__(self) -> rich.repr.Result:
return
yield
yield from ()
@rich.repr.auto(angular=True)

View File

@@ -155,8 +155,7 @@ class Parser(Generic[T]):
yield popleft()
def parse(self, on_token: Callable[[T], None]) -> Generator[Awaitable, str, None]:
return
yield
yield from ()
if __name__ == "__main__":

View File

@@ -383,8 +383,7 @@ class App(Generic[ReturnType], DOMNode):
def compose(self) -> ComposeResult:
"""Yield child widgets for a container."""
return
yield
yield from ()
def get_css_variables(self) -> dict[str, str]:
"""Get a mapping of variables used to pre-populate CSS.

View File

@@ -23,8 +23,7 @@ class Event(Message):
"""The base class for all events."""
def __rich_repr__(self) -> rich.repr.Result:
return
yield
yield from ()
@rich.repr.auto

View File

@@ -401,8 +401,7 @@ class Widget(DOMNode):
```
"""
return
yield
yield from ()
def _post_register(self, app: App) -> None:
"""Called when the instance is registered.