Skip to content

Commit 65a3272

Browse files
committed
Revert "bpo-38605: Update "Future statements" docs since PEP 563 is always enabled (pythonGH-25236)"
This reverts commit 1be456a.
1 parent 1e024af commit 65a3272

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎Doc/reference/simple_stmts.rst‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,14 @@ can appear before a future statement are:
877877
* blank lines, and
878878
* other future statements.
879879

880+
The only feature that requires using the future statement is
881+
``annotations`` (see :pep:`563`).
882+
880883
All historical features enabled by the future statement are still recognized
881884
by Python 3. The list includes ``absolute_import``, ``division``,
882885
``generators``, ``generator_stop``, ``unicode_literals``,
883-
``print_function``, ``nested_scopes``, ``with_statement`` and ``annotations``.
884-
They are all redundant because they are always enabled, and only kept for
886+
``print_function``, ``nested_scopes`` and ``with_statement``. They are
887+
all redundant because they are always enabled, and only kept for
885888
backwards compatibility.
886889

887890
A future statement is recognized and treated specially at compile time: Changes

0 commit comments

Comments
 (0)