From 3a250f523855856fec7f884f6d45f42134749bea Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 16 Dec 2020 19:51:46 +1000 Subject: [PATCH] formatting & mypy fix --- qt/aqt/sound.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index 658103bd1..d2a6be50d 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -554,7 +554,7 @@ class RecordDialog(QDialog): self._recorder.record() self._timer = t = QTimer(self._parent) - t.timeout.connect(self._on_timer) + t.timeout.connect(self._on_timer) # type: ignore t.setSingleShot(False) t.start(100) @@ -565,7 +565,9 @@ class RecordDialog(QDialog): return if self._recorder.isMuted(): self._recorder.setMuted(False) - self.label.setText(tr(TR.MEDIA_RECORDINGTIME, secs="%0.1f" % (duration/1000.0))) + self.label.setText( + tr(TR.MEDIA_RECORDINGTIME, secs="%0.1f" % (duration / 1000.0)) + ) def accept(self): try: