Skip to content

Commit

Permalink
Initialize variable in parse_word_head
Browse files Browse the repository at this point in the history
Either a new bug caused by recent commits by me,
or an old bug that was never triggered and was
now exposed because of recent commits.
  • Loading branch information
kristian-clausal committed Jun 18, 2024
1 parent 4fe1440 commit 372f256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wiktextract/form_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ def parse_word_head(
# Check for certain endings in head (mostly for compatibility with weird
# heads, e.g. rata/Romanian "1st conj." at end)
m = re.search(head_end_re, base)
tags: Union[tuple[str, ...], list[str]]
tags: Union[tuple[str, ...], list[str]] = []
if m:
tags = head_end_map[m.group(1).lower()].split()
data_extend(data, "tags", tags)
Expand Down

0 comments on commit 372f256

Please sign in to comment.