]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490)
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 21 Apr 2021 11:41:19 +0000 (12:41 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Apr 2021 11:41:19 +0000 (12:41 +0100)
commitb0544ba77cf86074fb1adde00558c67ca75eeea1
tree5168d0dc8da1360feabecfbc7c721b3fa9a38b11
parentd35eef3b904b62e9c775bf3764ab0a0611f5a860
bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490)

This reverts commits 044a1048ca93d466965afc027b91a5a9eb9ce23c and 1be456ae9d53bb1cba2b24fc86175c282d1c2169, adapting the code to changes that happened after it.
32 files changed:
Doc/reference/compound_stmts.rst
Doc/reference/simple_stmts.rst
Doc/whatsnew/3.10.rst
Lib/dataclasses.py
Lib/importlib/_bootstrap_external.py
Lib/inspect.py
Lib/test/dataclass_module_1.py
Lib/test/dataclass_module_1_str.py [new file with mode: 0644]
Lib/test/dataclass_module_2.py
Lib/test/dataclass_module_2_str.py [new file with mode: 0644]
Lib/test/dataclass_textanno.py
Lib/test/test_annotations.py [deleted file]
Lib/test/test_coroutines.py
Lib/test/test_dataclasses.py
Lib/test/test_dis.py
Lib/test/test_functools.py
Lib/test/test_grammar.py
Lib/test/test_inspect.py
Lib/test/test_opcodes.py
Lib/test/test_positional_only_arg.py
Lib/test/test_pydoc.py
Lib/test/test_syntax.py
Lib/test/test_types.py
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Core and Builtins/2021-04-20-22-17-47.bpo-38605.9eeCNZ.rst [new file with mode: 0644]
Python/ast_opt.c
Python/compile.c
Python/future.c
Python/importlib_external.h
Tools/peg_generator/pegen/grammar_parser.py
Tools/peg_generator/pegen/python_generator.py