From c02f234ce0082dea6b60fede39ac06f5a514b416 Mon Sep 17 00:00:00 2001 From: bpnguyen107 <105088397+bpnguyen107@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:19:20 -0700 Subject: [PATCH] Fix mypy errors --- qt/aqt/customstudy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index 730f3843b..eb8921627 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -144,7 +144,11 @@ class CustomStudy(QDialog): form.spin.setValue(current_spinner_value) form.preSpin.setText(text_before_spinner) form.postSpin.setText(text_after_spinner) - form.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setText(ok) + + ok_button = form.buttonBox.button(QDialogButtonBox.StandardButton.Ok) + assert ok_button is not None + ok_button.setText(ok) + self.radioIdx = idx def accept(self) -> None: