mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add spaces around the ":=" operator in ast_unparse.c (GH-19568)
This commit is contained in:
parent
2b5603140c
commit
ce578831a4
2 changed files with 3 additions and 3 deletions
|
@ -296,8 +296,8 @@ class AnnotationsFutureTestCase(unittest.TestCase):
|
|||
eq('f((x for x in a), 2)')
|
||||
eq('(((a)))', 'a')
|
||||
eq('(((a, b)))', '(a, b)')
|
||||
eq("(x:=10)")
|
||||
eq("f'{(x:=10):=10}'")
|
||||
eq("(x := 10)")
|
||||
eq("f'{(x := 10):=10}'")
|
||||
eq("1 + 2 + 3")
|
||||
|
||||
def test_fstring_debug_annotations(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue