Skip to content

Commit

Permalink
Use list() instead of useless comprehension, remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 17, 2023
1 parent 91a5936 commit 5238dd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/textual/await_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, *coroutine: Coroutine) -> None:
"""
self.coroutine = coroutine
AwaitComplete._instances.add(self)
self._future: Future = gather(*[coroutine for coroutine in self.coroutine])
self._future: Future = gather(*list(self.coroutine))
self._future.add_done_callback(self._on_done)

async def __call__(self) -> ReturnType:
Expand Down
1 change: 0 additions & 1 deletion tests/test_screen_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
InvalidModeError,
UnknownModeError,
)
from textual.css.query import NoMatches
from textual.screen import ModalScreen, Screen
from textual.widgets import Footer, Header, Label, RichLog

Expand Down

0 comments on commit 5238dd9

Please sign in to comment.