Inada Naoki <songofaca...@gmail.com> added the comment:

>  I think Pydantic would prefer it, because Pydantic wants to see the real 
> objects at runtime, rather than the stringized annotations.

If so, why don't they use `eval_str=True`?

I can not find any use cases where `eval_str= ONLY_IF_ALL_STR` is better than 
`eval_str=True`.

On the other hand, I think "return string annotation instead of raising error 
when eval failed" option is useful.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43817>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to