I tried to run the code in inflect documentation https://pypi.org/project/inflect/ but I get a value error.
import inflect
p = inflect.engine()
word = 'cat'
cat_count = 10
print("The plural of ", word, " is ", p.plural(word))
print("I saw", cat_count, p.plural("cat", cat_count))
I get the error:
ValueError: `Field` default cannot be set in `Annotated` for 'num_Annotated[str, FieldInfo(min_length=1, extra={})]'
I tried deleting and reinstalling the package but nothing changed. How can I solve this?
This seems to be a bug with your version ( source ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.