Mesa (main): pick-ui: drop assert that optional argument is passed
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 10 21:37:38 UTC 2021
Module: Mesa
Branch: main
Commit: db14f2a9326a3dfefd2abbf937641f7ab92024a2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db14f2a9326a3dfefd2abbf937641f7ab92024a2
Author: Eric Engestrom <eric at engestrom.ch>
Date: Wed Apr 29 18:51:30 2020 +0200
pick-ui: drop assert that optional argument is passed
Let's just make it not-optional instead.
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
---
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]:
More information about the mesa-commit
mailing list