]> granicus.if.org Git - python/commit
bpo-36878: Track extra text added to 'type: ignore' in the AST (GH-13479)
authorMichael J. Sullivan <sully@msully.net>
Wed, 22 May 2019 14:54:20 +0000 (07:54 -0700)
committerIvan Levkivskyi <levkivskyi@gmail.com>
Wed, 22 May 2019 14:54:20 +0000 (15:54 +0100)
commit933e1509ec6efa8e6ab8c8c7ce02059ce2b6d9b9
tree97980dec3873370773b481e2bc1f08f9f1624b9d
parent4c7a46eb3c009c85ddf2eb315d94d804745187d4
bpo-36878: Track extra text added to 'type: ignore' in the AST (GH-13479)

GH-13238 made extra text after a # type: ignore accepted by the parser.
This finishes the job and actually plumbs the extra text through the
parser and makes it available in the AST.
Include/Python-ast.h
Lib/test/test_type_comments.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2019-05-21-16-21-22.bpo-36878.EFRHZ3.rst [new file with mode: 0644]
Parser/Python.asdl
Parser/parsetok.c
Parser/tokenizer.c
Python/Python-ast.c
Python/ast.c