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 rhettinger
Recipients rhettinger
Date 2019-01-24.05:45:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548308739.94.0.144807070146.issue35814@roundup.psfhosted.org>
In-reply-to
Content
Am not sure how much we care about this, but parenthesis around tuples stops being optional when there is a variable annotation. 

>>> from typing import Tuple
>>> t = 10, 'hello'                     # Parens not normally required
>>> t: Tuple[int, str] = (10, 'hello')  # Annotated allows parens
>>> t: Tuple[int, str] = 10, 'hello'    # Annotated w/o parens fails
SyntaxError: invalid syntax
History
Date User Action Args
2019-01-24 05:45:42rhettingersetrecipients: + rhettinger
2019-01-24 05:45:39rhettingersetmessageid: <1548308739.94.0.144807070146.issue35814@roundup.psfhosted.org>
2019-01-24 05:45:39rhettingerlinkissue35814 messages
2019-01-24 05:45:39rhettingercreate