mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
bpo-35814: Allow same r.h.s. in annotated assignments as in normal ones (GH-11667)
This commit is contained in:
parent
1396d8fab4
commit
62c35a8a8f
6 changed files with 23 additions and 6 deletions
|
@ -166,7 +166,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
|
|||
with self.assertRaises(SyntaxError):
|
||||
exec("x, *y, z: int = range(5)", {}, {})
|
||||
with self.assertRaises(SyntaxError):
|
||||
exec("t: tuple = 1, 2", {}, {})
|
||||
exec("x: int = 1, y = 2", {}, {})
|
||||
with self.assertRaises(SyntaxError):
|
||||
exec("u = v: int", {}, {})
|
||||
with self.assertRaises(SyntaxError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue