From db14f2a9326a3dfefd2abbf937641f7ab92024a2 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 29 Apr 2020 18:51:30 +0200 Subject: [PATCH] pick-ui: drop assert that optional argument is passed Let's just make it not-optional instead. Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Cc: mesa-stable Part-of: --- bin/pick/ui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/pick/ui.py b/bin/pick/ui.py index de9fafd8249..babb71cdc0d 100644 --- a/bin/pick/ui.py +++ b/bin/pick/ui.py @@ -43,9 +43,8 @@ PALETTE = [ class RootWidget(urwid.Frame): - def __init__(self, *args, ui: 'UI' = None, **kwargs): + def __init__(self, *args, ui: 'UI', **kwargs): super().__init__(*args, **kwargs) - assert ui is not None self.ui = ui def keypress(self, size: int, key: str) -> typing.Optional[str]: