From c1f6a6bd56fe90c1e39f63f3485053233fe38562 Mon Sep 17 00:00:00 2001 From: Michael Wayne Goodman Date: Tue, 10 Dec 2024 22:07:09 -0800 Subject: [PATCH] Fix Mypy errors --- wn/_export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wn/_export.py b/wn/_export.py index feec349..0dd0a4c 100644 --- a/wn/_export.py +++ b/wn/_export.py @@ -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) ) @@ -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) ]