]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39220: Do not optimise annotation if 'from __future__ import annotations' is...
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 18 Mar 2020 23:02:09 +0000 (23:02 +0000)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2020 23:02:09 +0000 (23:02 +0000)
commitd112c600ab3f5e2910345bcc4bfc39439917ed87
tree1b260548a6f6b9bebcbf9be74bcfb3f3f8a39068
parent8849e5962ba481d5d414b3467a256aba2134b4da
bpo-39220: Do not optimise annotation if 'from __future__ import annotations' is used (GH-17866)

Do not apply AST-based optimizations if 'from __future__ import annotations' is used in order to
prevent information lost in the final version of the annotations.
Include/compile.h
Lib/test/test_future.py
Misc/NEWS.d/next/Core and Builtins/2020-01-06-13-58-37.bpo-39220.KGFovE.rst [new file with mode: 0644]
Python/ast_opt.c
Python/compile.c