-
Notifications
You must be signed in to change notification settings - Fork 546
Open
Description
The following valid Python programs fail to build via codon build
. They will build if slightly edited.
$ codon --version
0.17.0
def u():
yield 1,2,3
[[x,y,z]] = u() # fix via [[x,y,z]] = list(u()) or [x,y,z] = next(u())
# cex.py:3:13-16: error: 'Generator[Tuple[int,int,int]]' object has no attribute '__getitem__'
x, y = 0,0
while (x,y) == (0,0):
[(x,y)] = [(0,0)] # fix via ((x,y),) = [(0,0)]
# cex.py:3:5-22: error: 'Tuple[int,int]' does not match expected type 'int'
Metadata
Metadata
Assignees
Labels
No labels