bpo-43797: Handle correctly invalid assignments inside function calls and generators (GH-25390)

This commit is contained in:
Pablo Galindo 2021-04-13 17:51:21 +01:00 committed by GitHub
parent fd79af7ae2
commit 30ed93bfec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 9 deletions

View file

@ -103,7 +103,7 @@ Verify that parenthesis are required when used as a keyword argument value
>>> dict(a = i for i in range(10))
Traceback (most recent call last):
...
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
SyntaxError: invalid syntax
Verify that parenthesis are required when used as a keyword argument value