Message334280
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 |
|
Date |
User |
Action |
Args |
2019-01-24 05:45:42 | rhettinger | set | recipients:
+ rhettinger |
2019-01-24 05:45:39 | rhettinger | set | messageid: <1548308739.94.0.144807070146.issue35814@roundup.psfhosted.org> |
2019-01-24 05:45:39 | rhettinger | link | issue35814 messages |
2019-01-24 05:45:39 | rhettinger | create | |
|