Skip to content

Commit

Permalink
fix: resolve pydantic serializer warnings in _add_merged_meta (#461)
Browse files Browse the repository at this point in the history
close #458

* `source_meta` key should have type `SourceName` not `str`
  • Loading branch information
korikuzma authored Jan 30, 2025
1 parent 724b29e commit 1493477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/therapy/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def _add_merged_meta(self, response: NormalizationService) -> NormalizationServi

for src in sources:
if src not in sources_meta:
sources_meta[src] = self.db.get_source_metadata(src)
sources_meta[SourceName[src.upper()]] = self.db.get_source_metadata(src)
response.source_meta_ = sources_meta # type: ignore[assignment]
return response

Expand Down

0 comments on commit 1493477

Please sign in to comment.