mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Enable strict_optional for aqt/deckdescription.py (#3538)
* Enable strict_optional * Fix mypy errors
This commit is contained in:
parent
2889299670
commit
fbd53726cc
2 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,8 @@ strict_optional = True
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
[mypy-aqt.taglimit]
|
[mypy-aqt.taglimit]
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
|
[mypy-aqt.deckdescription]
|
||||||
|
strict_optional = True
|
||||||
[mypy-aqt.deckbrowser]
|
[mypy-aqt.deckbrowser]
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
[mypy-anki.scheduler.base]
|
[mypy-anki.scheduler.base]
|
||||||
|
|
|
@ -60,6 +60,7 @@ class DeckDescriptionDialog(QDialog):
|
||||||
|
|
||||||
button_box = QDialogButtonBox()
|
button_box = QDialogButtonBox()
|
||||||
ok = button_box.addButton(QDialogButtonBox.StandardButton.Ok)
|
ok = button_box.addButton(QDialogButtonBox.StandardButton.Ok)
|
||||||
|
assert ok is not None
|
||||||
qconnect(ok.clicked, self.save_and_accept)
|
qconnect(ok.clicked, self.save_and_accept)
|
||||||
box.addWidget(button_box)
|
box.addWidget(button_box)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue