mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Merge branch 'main' into aqt-strict-optional-overview
This commit is contained in:
commit
677664dea3
2 changed files with 7 additions and 1 deletions
|
@ -46,6 +46,8 @@ strict_optional = True
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
[mypy-aqt.overview]
|
[mypy-aqt.overview]
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
|
[mypy-aqt.customstudy]
|
||||||
|
strict_optional = True
|
||||||
[mypy-anki.scheduler.base]
|
[mypy-anki.scheduler.base]
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
[mypy-anki._backend.rsbridge]
|
[mypy-anki._backend.rsbridge]
|
||||||
|
|
|
@ -144,7 +144,11 @@ class CustomStudy(QDialog):
|
||||||
form.spin.setValue(current_spinner_value)
|
form.spin.setValue(current_spinner_value)
|
||||||
form.preSpin.setText(text_before_spinner)
|
form.preSpin.setText(text_before_spinner)
|
||||||
form.postSpin.setText(text_after_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
|
self.radioIdx = idx
|
||||||
|
|
||||||
def accept(self) -> None:
|
def accept(self) -> None:
|
||||||
|
|
Loading…
Reference in a new issue