Attempt to improve tuple unpackings

This commit is contained in:
Dave Halter
2026-04-29 23:10:31 +02:00
parent 0d79865a0f
commit be993d132e
3 changed files with 18 additions and 7 deletions
+9 -5
View File
@@ -207,16 +207,16 @@ C().a
(f, g) = (1,)
#? int()
f
#? []
g.
#? int()
g
(f, g, h) = (1,'')
#? int()
f
#? str()
g
#? []
h.
#? str()
h
(f1, g1) = 1
#? []
@@ -311,9 +311,13 @@ for x in {1: 3.0, '': 1j}:
dict().values().__iter__
d = dict(a=3, b='')
x, = d.values()
x, y, z = d.values()
#? int() str()
x
#? int() str()
y
#? int() str()
z
#? int()
d['a']
#? int() str() None