Skip to content

Commit 670b8db

Browse files
gh-153528: Document mode="func_type" in compile()
1 parent aab474a commit 670b8db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Doc/builtins/functions.rst‎

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

358360
The optional arguments *flags* and *dont_inherit* control which
359361
:ref:`compiler options <ast-compiler-flags>` should be activated

0 commit comments

Comments
 (0)