Skip to content

Commit

Permalink
Fix Mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmami committed Dec 11, 2024
1 parent ebe99df commit c1f6a6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wn/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ def _export_sense_relations(
relations: list[lmf.Relation] = [
{'target': id,
'relType': type,
'meta': metadata}
'meta': cast(lmf.Metadata, metadata)}
for type, _, metadata, id, *_
in get_sense_relations(sense_rowid, '*', lexids)
]
relations.extend(
{'target': id,
'relType': type,
'meta': metadata}
'meta': cast(lmf.Metadata, metadata)}
for type, _, metadata, _, id, *_
in get_sense_synset_relations(sense_rowid, '*', lexids)
)
Expand Down Expand Up @@ -303,7 +303,7 @@ def _export_synset_relations(
return [
{'target': id,
'relType': type,
'meta': metadata}
'meta': cast(lmf.Metadata, metadata)}
for type, _, metadata, _, id, *_
in get_synset_relations((synset_rowid,), '*', lexids)
]
Expand Down

0 comments on commit c1f6a6b

Please sign in to comment.