]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add 'as a' to with-statement with type comment
authorGuido van Rossum <guido@python.org>
Mon, 28 Jan 2019 01:29:42 +0000 (17:29 -0800)
committerGuido van Rossum <guido@python.org>
Mon, 28 Jan 2019 16:35:45 +0000 (08:35 -0800)
Lib/test/test_type_comments.py

index ac5b5de59e322a8e3de66c24761765c78f637da2..9b393a274d3398579034511c5c204a6eaa63c2e1 100644 (file)
@@ -27,7 +27,7 @@ for a in []:  # type: int
 
 
 withstmt = """\
-with context():  # type: int
+with context() as a:  # type: int
     pass
 """