◐ Shell
clean mode source ↗

Message 391765 - Python tracker

For what it's worth: I changed the name to ONLY_IF_STRINGIZED in the PR.

Since I propose that it be the default, everyone who called inspect.get_annotations(), and inspect.signature(), would use it.  I think Pydantic would prefer it, because Pydantic wants to see the real objects at runtime, rather than the stringized annotations.

If stringized annotations were deprecated in the future, then eval_str should be deprecated at the same time.