-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--py311-plus
should not unquote annotations
#637
Comments
Happy to contribute a PR for this if you agree. |
ah yes, that was supposed to be cleaned up with the other revert but looks like it got missed:
|
`from __future__ import annotations` will not be the default behavior on 3.11. Fixes asottile#637.
@JelleZijlstra, where can I read about this? Doc for |
Right, I filed an issue for that too :) python/cpython#92436 https://mail.python.org/archives/list/python-dev@python.org/message/VIZEBX5EYMSYIJNDBF6DMUMZOCWHARSO/ is the announcement for delaying it from 3.11. My sense (based on discussions at PyCon) is that we'll end up with some form of PEP 649 behavior in 3.12, but that's not yet decided. |
https://github.com/asottile/pyupgrade#remove-quoted-annotations says that
--py311-plus
will remove quoted annotations. I suppose that was done under the assumption that PEP 563 (from __future__ import annotations
) would become the default in 3.11, but that's not happening. (And probably not in the future either.)The text was updated successfully, but these errors were encountered: