8000 PEP 749: Mark as Accepted by JelleZijlstra · Pull Request #4406 · python/peps · GitHub
[go: up one dir, main page]

Skip to content
8000

PEP 749: Mark as Accepted #4406

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

Merged
merged 3 commits into from
May 6, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions peps/pep-0749.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ PEP: 749
Title: Implementing PEP 649
Author: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Discussions-To: https://discuss.python.org/t/pep-749-implementing-pep-649/54974
Status: Draft
Status: Accepted
Type: Standards Track
Topic: Typing
Requires: 649
Created: 28-May-2024
Python-Version: 3.14
Post-History: `04-Jun-2024 <https://discuss.python.org/t/pep-749-implementing-pep-649/54974>`__
Resolution: `05-May-2025 <https://discuss.python.org/t/pep-749-implementing-pep-649/54974/66>`__


Abstract
Expand Down Expand Up @@ -633,7 +634,9 @@ Specification
An additional format, ``VALUE_WITH_FAKE_GLOBALS``, is added to the ``Format`` enum in the
``annotationlib`` module, with value equal to 2. (As a result, the values of the
other formats will shift relative to PEP 649: ``FORWARDREF`` will be 3 and ``SOURCE``
will be 4.)
will be 4.) The integer values of these formats are specified for use in places where
the enum is not readily available, such as in ``__annotate__`` functions implemented
in C.

Compiler-generated
annotate functions will support this format and return the same value as
Expand Down Expand Up @@ -875,9 +878,9 @@ print an empty dictionary twice, because the ``__annotate__`` function
is set only when module execution is complete. This is obviously
unintuitive.
Comment on lines 878 to 879

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is perhaps not important anymore now that the PEP is accepted, but you might want to change this sentence, given that the "obviously unintuitive" behaviour is now what PEP 749 implements.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not what's currently implemented.


See `python/cpython#130907`__ for implementation.
See `python/cpython#131550`__ for implementation.

__ https://github.com/python/cpython/issue/130907
__ https://github.com/python/cpython/pull/131550

Specification
-------------
Expand Down
0