From: Guido van Rossum Date: Mon, 28 Jan 2019 20:05:05 +0000 (-0800) Subject: Fix markup bug X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b68270ce090f6ccb44308e4f77f02c7819c5177d;p=thirdparty%2FPython%2Fcpython.git Fix markup bug --- diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 359b627c1dc5..3df7f9ebc70c 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -132,7 +132,7 @@ and classes for traversing abstract syntax trees: filename, mode, ast.PyCF_ONLY_AST)``. If ``type_comments=True`` is given, the parser is modified to check - and return type comments as specified by :pep:`484` and :pep:526`. + and return type comments as specified by :pep:`484` and :pep:`526`. This is equivalent to adding :data:`ast.PyCF_TYPE_COMMENTS` to the flags passed to :func:`compile()`. This will report syntax errors for misplaced type comments. Without this flag, type comments will