Skip to content

Commit

Permalink
One more level deep, pydantic now inflects the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 31, 2024
1 parent 155b1f4 commit 5ef0bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inflect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,7 @@ def compare(self, word1: Word, word2: Word) -> Union[str, bool]:
...
pydantic...ValidationError: ...
...
...at least 1 characters...
...at least 1 character...
"""
norms = self.plural_noun, self.plural_verb, self.plural_adj
results = (self._plequal(word1, word2, norm) for norm in norms)
Expand Down

0 comments on commit 5ef0bab

Please sign in to comment.