diff options
author | Eric Engestrom <eric@engestrom.ch> | 2020-04-29 18:51:30 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-08-10 21:36:43 +0000 |
commit | db14f2a9326a3dfefd2abbf937641f7ab92024a2 (patch) | |
tree | be6697e7b00e6c1db67385740f9f1b23e4d40911 /bin | |
parent | a79ac1bee14d6600cde2788bf136aa59b69a786f (diff) |
pick-ui: drop assert that optional argument is passed
Let's just make it not-optional instead.
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/pick/ui.py | 3 |
1 files changed, 1 insertions, 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]: |