Skip to content

Commit 6a34906

Browse files
gh-153528: Document mode="func_type" in compile()
1 parent 9b9d531 commit 6a34906

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/functions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ are always available. They are listed here in alphabetical order.
314314
consists of a single expression, or ``'single'`` if it consists of a single
315315
interactive statement (in the latter case, expression statements that
316316
evaluate to something other than ``None`` will be printed).
317+
It can also be ``'func_type'`` if *source* consists of a single :pep:`484`
318+
signature type comment; see :func:`ast.parse` for more information.
317319

318320
The optional arguments *flags* and *dont_inherit* control which
319321
:ref:`compiler options <ast-compiler-flags>` should be activated
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document ``mode="func_type"`` in :func:`compile`.

0 commit comments

Comments
 (0)