| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b56031 commit ce57883
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -296,8 +296,8 @@ def test_annotations(self): | |||
| 296 | 296 | eq('f((x for x in a), 2)') | |
| 297 | 297 | eq('(((a)))', 'a') | |
| 298 | 298 | eq('(((a, b)))', '(a, b)') | |
| 299 | - eq("(x:=10)") | ||
| 300 | - eq("f'{(x:=10):=10}'") | ||
| 299 | + eq("(x := 10)") | ||
| 300 | + eq("f'{(x := 10):=10}'") | ||
| 301 | 301 | eq("1 + 2 + 3") | |
| 302 | 302 | ||
| 303 | 303 | def test_fstring_debug_annotations(self): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -829,7 +829,7 @@ append_named_expr(_PyUnicodeWriter *writer, expr_ty e, int level) | |||
| 829 | 829 | { | |
| 830 | 830 | APPEND_STR_IF(level > PR_TUPLE, "("); | |
| 831 | 831 | APPEND_EXPR(e->v.NamedExpr.target, PR_ATOM); | |
| 832 | - APPEND_STR(":="); | ||
| 832 | + APPEND_STR(" := "); | ||
| 833 | 833 | APPEND_EXPR(e->v.NamedExpr.value, PR_ATOM); | |
| 834 | 834 | APPEND_STR_IF(level > PR_TUPLE, ")"); | |
| 835 | 835 | return 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments