Skip to content
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

What's new in 3.7 incorrectly states PEP 563 will be default in 3.10 #112306

Open
davetapley opened this issue Nov 22, 2023 · 2 comments
Open

What's new in 3.7 incorrectly states PEP 563 will be default in 3.10 #112306

davetapley opened this issue Nov 22, 2023 · 2 comments
Labels
3.11 bug and security fixes 3.12 bugs and security fixes 3.13 new features, bugs and security fixes docs Documentation in the Doc dir topic-typing

Comments

@davetapley
Copy link

davetapley commented Nov 22, 2023

Documentation

It was correct at the time, but is a bit confusing now:

PEP 563: Postponed Evaluation of Annotations

...
It will become the default in Python 3.10.

https://docs.python.org/3/whatsnew/3.7.html#pep-563-postponed-evaluation-of-annotations


But this is no longer the case as clarified:

from future import annotations was previously scheduled to become mandatory in Python 3.10, but the Python Steering Council twice decided to delay the change (announcement for Python 3.10; announcement for Python 3.11). No final decision has been made yet. See also PEP 563 and PEP 649.

https://docs.python.org/3/library/__future__.html


Confused me as I learned of PEP 563 via the 3.7 "What's new" link being top search result.
I first assumed it wasn't the issue I was seeing as I'm on 3.11, but turns out it was,
and my issue went away when I added __future__ import 😑

@davetapley davetapley added the docs Documentation in the Doc dir label Nov 22, 2023
@JelleZijlstra
Copy link
Member

Agree we should change this. We don't normally update old What's New sections, but this is confusing enough that it's important to be as clear as possible. We could use similar wording as in the docs for __future__ (https://docs.python.org/3.10/library/__future__.html#id1). However, that wording also needs to be updated: PEP 649 now has really been accepted and is expected to be implemented in Python 3.13.

PR welcome!

@ned-deily
Copy link
Member

While we can and should update the 3.7 What's New section in the docs for currently maintained releases, keep in mind that Python 3.7 has reached end-of-life and no further changes to its documentation set are possible.

@AlexWaygood AlexWaygood added 3.11 bug and security fixes 3.12 bugs and security fixes 3.13 new features, bugs and security fixes labels Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 bug and security fixes 3.12 bugs and security fixes 3.13 new features, bugs and security fixes docs Documentation in the Doc dir topic-typing
Projects
None yet
Development

No branches or pull requests

4 participants