This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya
Date 2020-05-25.15:02:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590418980.01.0.581408233442.issue40769@roundup.psfhosted.org>
In-reply-to
Content
$ python -X oldparser
Python 3.10.0a0 (heads/bpo-xxxxx:f2947e354c, May 21 2020, 18:54:57) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> (()): int
  File "<stdin>", line 1
SyntaxError: only single target (not tuple) can be annotated
>>> ((())): int
  File "<stdin>", line 1
SyntaxError: only single target (not tuple) can be annotated
>>> (((()))): int
  File "<stdin>", line 1
SyntaxError: only single target (not tuple) can be annotated
>>> ([]): int
  File "<stdin>", line 1
SyntaxError: only single target (not list) can be annotated
>>> (([])): int
  File "<stdin>", line 1
SyntaxError: only single target (not list) can be annotated

---- current ----

>>> (()): int
  File "<stdin>", line 1
    (()): int
     ^
SyntaxError: illegal target for annotation
>>> (((()))): int
  File "<stdin>", line 1
    (((()))): int
       ^
SyntaxError: illegal target for annotation
>>> ([]): int
  File "<stdin>", line 1
    ([]): int
     ^
SyntaxError: illegal target for annotation
>>> (([])): int
  File "<stdin>", line 1
    (([])): int
      ^
SyntaxError: illegal target for annotation
History
Date User Action Args
2020-05-25 15:03:00BTaskayasetrecipients: + BTaskaya
2020-05-25 15:03:00BTaskayasetmessageid: <1590418980.01.0.581408233442.issue40769@roundup.psfhosted.org>
2020-05-25 15:02:59BTaskayalinkissue40769 messages
2020-05-25 15:02:59BTaskayacreate