Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueGreenMagick committed Nov 1, 2023
1 parent 9dc658d commit 2a4f216
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[mypy]
no_strict_optional = True
disallow_untyped_defs = True
disable_error_code = attr-defined
disallow_untyped_defs = True
2 changes: 1 addition & 1 deletion src/addon/ankiaddonconfig
Submodule ankiaddonconfig updated 1 files
+1 −1 window.py
4 changes: 2 additions & 2 deletions src/addon/reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_value(note: Note, fld: str) -> str:
try:
string_tags = note.string_tags()
except:
string_tags = note.stringTags()
string_tags = note.stringTags() # type:ignore
return string_tags.strip(" ")
if fld in note:
return note[fld]
Expand All @@ -105,7 +105,7 @@ def reload_reviewer(reviewer: Reviewer) -> None:
except:
timer_started = reviewer.card.timerStarted # type: ignore
timer_started_snake_case = False
reviewer.card = mw.col.getCard(cid)
reviewer.card = mw.col.getCard(cid) # type: ignore
if timer_started_snake_case:
reviewer.card.timer_started = timer_started
else:
Expand Down

0 comments on commit 2a4f216

Please sign in to comment.