Skip to content

Commit

Permalink
KDP-1761: Ignored warning for i18n type
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulVanSchayck committed Sep 8, 2023
1 parent 1c995fd commit 3c02d03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/covjson_pydantic/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ class LanguageTag(str, Enum):
undefined = "und"


i18n = Dict[LanguageTag, str]
# TODO: This was throwing warning:
# Expected `definition-ref` but got `LanguageTag` - serialized value may not be as expected
# This may be a bug in Pydantic: https://github.com/pydantic/pydantic/issues/6467
# So, for now, reverted to a less strict type
# i18n = Dict[LanguageTag, str]
i18n = Dict[str, str]

0 comments on commit 3c02d03

Please sign in to comment.