Skip to content
Snippets Groups Projects
Commit db14f2a9 authored by Eric Engestrom's avatar Eric Engestrom :no_entry: Committed by Marge Bot
Browse files

pick-ui: drop assert that optional argument is passed


Let's just make it not-optional instead.

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
Reviewed-by: default avatarDylan Baker <dylan@pnwbakers.com>
Cc: mesa-stable
Part-of: <mesa/mesa!12289>
parent a79ac1be
No related branches found
No related tags found
No related merge requests found
......@@ -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]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment