Enable strict_optional for aqt/deckdescription.py (#3538)

* Enable strict_optional

* Fix mypy errors
This commit is contained in:
Ben Nguyen 2024-10-27 21:18:16 -07:00 committed by GitHub
parent 2889299670
commit fbd53726cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,8 @@ strict_optional = True
strict_optional = True
[mypy-aqt.taglimit]
strict_optional = True
[mypy-aqt.deckdescription]
strict_optional = True
[mypy-aqt.deckbrowser]
strict_optional = True
[mypy-anki.scheduler.base]

View file

@ -60,6 +60,7 @@ class DeckDescriptionDialog(QDialog):
button_box = QDialogButtonBox()
ok = button_box.addButton(QDialogButtonBox.StandardButton.Ok)
assert ok is not None
qconnect(ok.clicked, self.save_and_accept)
box.addWidget(button_box)