Skip to content

Commit

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

* Fix mypy errors in EditorWebView class

* Fix mypy errors in Editor class

* DRY

* Match same short circuiting behavior

* Convention
  • Loading branch information
bpnguyen107 authored Oct 15, 2024
1 parent 694a508 commit a537d34
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 51 deletions.
2 changes: 2 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ strict_optional = True
strict_optional = True
[mypy-aqt.operations.*]
strict_optional = True
[mypy-aqt.editor]
strict_optional = True
[mypy-anki.scheduler.base]
strict_optional = True
[mypy-anki._backend.rsbridge]
Expand Down
Loading

0 comments on commit a537d34

Please sign in to comment.