Skip to content

Commit

Permalink
Enable strict_optional for aqt/deckdescription.py (#3538)
Browse files Browse the repository at this point in the history
* Enable strict_optional

* Fix mypy errors
  • Loading branch information
bpnguyen107 authored Oct 28, 2024
1 parent 2889299 commit fbd5372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions qt/aqt/deckdescription.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def _setup_ui(self) -> None:

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)

Expand Down

0 comments on commit fbd5372

Please sign in to comment.