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.
This commit is contained in:
Dave Pearson
2023-09-13 21:43:57 +01:00
parent 1a471fd19c
commit 0c75239ebc

View File

@@ -580,7 +580,6 @@ class CommandPalette(ModalScreen[CallbackType], inherit_css=False):
# 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(