Skip to content

Commit 1cc2575

Browse files
fix mypy error for function without return type annotation
1 parent abf1ecb commit 1cc2575

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/addon/migrate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ def v2_to_v3(conf: ConfigManager) -> None:
208208
conf.set("colors", colors)
209209
conf.save()
210210

211+
211212
# for Anki v2.66+
212-
def adjust_colors_v3(colors: dict):
213+
def adjust_colors_v3(colors: dict) -> None:
213214
# add canvas-glass
214215
elevated = colors["CANVAS_ELEVATED"]
215216
colors["CANVAS_GLASS"] = [
@@ -227,4 +228,4 @@ def adjust_colors_v3(colors: dict):
227228
fg = colors["FG"]
228229
if not isinstance(fg[3], list):
229230
fg[3] = [fg[3]]
230-
fg[3].append("--bs-body-color")
231+
fg[3].append("--bs-body-color")

0 commit comments

Comments
 (0)