Skip to content

Commit

Permalink
fix: Added missing type ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Dec 26, 2023
1 parent 0e4b222 commit 4672b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/augmenty/token/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,13 @@ def __insert(
{
(lem, pos)
for syn in syns
for lem in syn.lemma_names(lang=lang)
for lem in syn.lemma_names(lang=lang) # type: ignore
},
)
else:
syns = wordnet.synsets(word, lang=lang)
rep = rep.union(
{lem for syn in syns for lem in syn.lemma_names(lang=lang)},
{lem for syn in syns for lem in syn.lemma_names(lang=lang)}, # type: ignore
)

if rep:
Expand Down

0 comments on commit 4672b01

Please sign in to comment.