Skip to content

__future__.annotations has inaccurate mandatoryRelease value #93626

Description

@KotlinIsland

future.__annotations__ has been postponed, yet it is active in the 3.11 betas.

>A clear and concise description of the issue.

https://docs.python.org/3.11/whatsnew/3.11.html

This page doesn't mention pep 563 at all.

Activity

  1. JelleZijlstra commented on Jun 9, 2022

    @JelleZijlstra
    Member

    PEP 563 has been deferred. There will be no behavior changes around the future import in 3.11. See https://docs.python.org/3.10/library/__future__.html#id1

  2. KotlinIsland commented on Jun 9, 2022

    @KotlinIsland
    ContributorAuthor

    cpython/Lib/__future__.py

    Lines 145 to 147 in 68f6a5d

    annotations = _Feature((3, 7, 0, "beta", 1),
    (3, 11, 0, "alpha", 0),
    CO_FUTURE_ANNOTATIONS)

    Does this need to be updated then? All the 3.11 releases so far have annotations turned on.

  3. KotlinIsland commented on Jun 9, 2022

    @KotlinIsland
    ContributorAuthor

    Maybe the 'What's New' could mention that it has been delayed again.

  4. graingert commented on Jun 18, 2022

    @graingert
    Contributor

    could it be set to None instead?

    MandatoryRelease may also be None, meaning that a planned feature got
    dropped.

    the wording could be changed to say:

    MandatoryRelease may also be None, meaning that a planned feature has
    no predicted release or has been dropped.

  5. KotlinIsland commented on Jun 19, 2022

    @KotlinIsland
    ContributorAuthor

    I've made that change.

  6. changed the title [-]3.11 What's new doesn't mention `future.__annotations__` becoming active[/-] [+]`future.__annotations__` is active in 3.11 betas[/+] on Jun 29, 2022
  7. KotlinIsland commented on Jun 29, 2022

    @KotlinIsland
    ContributorAuthor

    @JelleZijlstra Could this be reopened?

  8. graingert commented on Jun 29, 2022

    @graingert
    Contributor

    Imho this is a release blocker

  9. changed the title [-]`future.__annotations__` is active in 3.11 betas[/-] [+]`__future__.annotations` has inaccurate `mandatoryRelease` value[/+] on Jun 30, 2022
  10. zware commented on Jun 30, 2022

    @zware
    Member

    I see no need for this to block beta 4, but it should be resolved before final release.

    /cc @pablogsal

  11. added a commit that references this issue on Jul 5, 2022
  12. added 2 commits that reference this issue on Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions