mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user