Extend annotated assignment rule's RHS

This commit is contained in:
Batuhan Taskaya
2020-05-26 01:08:01 +03:00
parent 4c2c0ad077
commit e0dc415bbc
4 changed files with 6 additions and 3 deletions

View File

@@ -194,6 +194,9 @@ def test_no_error_nodes(each_version):
def test_named_expression(works_ge_py38):
works_ge_py38.parse("(a := 1, a + 1)")
def test_extended_rhs_annassign(works_ge_py38):
works_ge_py38.parse("x: y = z,")
works_ge_py38.parse("x: Tuple[int, ...] = z, *q, w")
@pytest.mark.parametrize(
'param_code', [