Skip to content

from __future__ import annotations is not mandatory in 3.11.0a1+ #89662

Description

@thatbirdguythatuknownot
BPO 45499
Nosy @stevendaprano, @thatbirdguythatuknownot

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-10-17.05:34:30.026>
created_at = <Date 2021-10-17.04:50:55.818>
labels = ['type-bug', 'expert-installation', '3.11']
title = 'from __future__ import annotations is not mandatory in 3.11.0a1+'
updated_at = <Date 2021-10-17.05:34:30.025>
user = 'https://github.com/thatbirdguythatuknownot'

bugs.python.org fields:

activity = <Date 2021-10-17.05:34:30.025>
actor = 'steven.daprano'
assignee = 'none'
closed = True
closed_date = <Date 2021-10-17.05:34:30.026>
closer = 'steven.daprano'
components = ['Installation']
creation = <Date 2021-10-17.04:50:55.818>
creator = 'Crowthebird'
dependencies = []
files = []
hgrepos = []
issue_num = 45499
keywords = []
message_count = 4.0
messages = ['404125', '404126', '404127', '404128']
nosy_count = 2.0
nosy_names = ['steven.daprano', 'Crowthebird']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue45499'
versions = ['Python 3.11']

Activity

  1. thatbirdguythatuknownot commented on Oct 17, 2021

    thatbirdguythatuknownotmannequin
    MannequinAuthor
    >>> import sys
    >>> import __future__
    >>> __future__.annotations
    _Feature((3, 7, 0, 'beta', 1), (3, 11, 0, 'alpha', 0), 16777216)
    >>> sys.version_info
    sys.version_info(major=3, minor=11, micro=0, releaselevel='alpha', serial=1)
    >>> sys.version_info > __future__.annotations.mandatory
    True
    >>> sys.version_info >= __future__.annotations.mandatory
    True

    Why is it still not automatically inside python 3.11.0a1?

  2. thatbirdguythatuknownot commented on Oct 17, 2021

    thatbirdguythatuknownotmannequin
    MannequinAuthor
    test case:
    >>> a: A = 'test'
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    NameError: name 'A' is not defined. Did you mean: 'a'?
  3. stevendaprano commented on Oct 17, 2021

    @stevendaprano
    Member

    Why is it still not automatically inside python 3.11.0a1?

    Probably because this is the .0a1 version, and making it mandatory just hasn't been done yet. The developers are only human and can't do everything instantly.

  4. stevendaprano commented on Oct 17, 2021

    @stevendaprano
    Member

    Duplicate: bpo-38605

  5. transferred this issue fromon Apr 10, 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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions