From __future__ import annotations_compat as a migration bridge
Discussions on Python.org
From __future__ import annotations_compat as a migration bridge
I may have missed an earlier discussion on this—I tried to read it all, but it’s a lot. The current behavior with from future import __annotations__, IIUC, causes migration headaches; I think this has been discussed sufficiently. What is a library that wants to support all non-EOL Python versions to do? I think the only option is to retain that, and thus get the stringifying behavior. This also means there’s a flag day at EOL of Python 3.13, especially to get rid of the warnings. One migratory ...
I may have missed an earlier discussion on this—I tried to read it all, but it’s a lot. The current behavior with from future import __annotations__, IIUC, causes migration…
0 comments
No comments yet.