From 0c75239ebcebd77d7f2f8d05d2385cda60b0783b Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 13 Sep 2023 21:43:57 +0100 Subject: [PATCH] Remove assertion that the calling screen is not None The assert was for the benefit of type checkers; the code that needed that hint was moved elsewhere by the recent tweak; but this wasn't tidied up. This tidies that up. --- src/textual/command.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/textual/command.py b/src/textual/command.py index 346f7bc894..d262fcf87c 100644 --- a/src/textual/command.py +++ b/src/textual/command.py @@ -580,7 +580,6 @@ async def _search_for(self, search_value: str) -> AsyncGenerator[Hit, bool]: # Fire up an instance of each command source, inside a task, and # have them go start looking for matches. - assert self._calling_screen is not None searches = [ create_task( self._consume(