From af6e5b1838d5dd72a7c8fef10df7d920c16770ba Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 1 Mar 2018 08:56:39 +0100 Subject: [PATCH] Fix lint --- tests/unit/keyinput/test_keyutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/keyinput/test_keyutils.py b/tests/unit/keyinput/test_keyutils.py index 43d9bf879..c1ddbcb5a 100644 --- a/tests/unit/keyinput/test_keyutils.py +++ b/tests/unit/keyinput/test_keyutils.py @@ -50,6 +50,10 @@ class KeyTestWidget(QWidget): got_text = pyqtSignal() + def __init__(self, parent=None): + super().__init__(parent) + self.text = None + def keyPressEvent(self, e): self.text = e.text() self.got_text.emit()