Skip to content

Commit

Permalink
use correct return type
Browse files Browse the repository at this point in the history
  • Loading branch information
gflohr committed Jul 4, 2024
1 parent 1498c44 commit 1ece12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os
import re
from pathlib import Path
from typing import Any
from typing import Any, Union
import semantic_version as sv
import anki
from aqt import mw
Expand Down Expand Up @@ -151,7 +151,7 @@ def _fill_config(self, raw: Any) -> Any:

return raw

def _get_basic_notetype(self) -> NotetypeId | None:
def _get_basic_notetype(self) -> Union[NotetypeId, None]:
names = []

lang = anki.lang.current_lang
Expand Down

0 comments on commit 1ece12f

Please sign in to comment.