From: Guido van Rossum Date: Mon, 28 Jan 2019 01:29:42 +0000 (-0800) Subject: Add 'as a' to with-statement with type comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ea39e67c96571bc7d8ad4e355dc67aa15fb3d4;p=thirdparty%2FPython%2Fcpython.git Add 'as a' to with-statement with type comment --- diff --git a/Lib/test/test_type_comments.py b/Lib/test/test_type_comments.py index ac5b5de59e32..9b393a274d33 100644 --- a/Lib/test/test_type_comments.py +++ b/Lib/test/test_type_comments.py @@ -27,7 +27,7 @@ for a in []: # type: int withstmt = """\ -with context(): # type: int +with context() as a: # type: int pass """