summaryrefslogtreecommitdiff
path: root/Include/code.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2018-01-26 08:20:18 -0800
committerƁukasz Langa <lukasz@langa.pl>2018-01-26 08:20:18 -0800
commit95e4d589137260530e18ef98a2ed84ee3ec57e12 (patch)
tree9d0c3bc48158e9f0c83f1b9cb509c1fbebd9cfde /Include/code.h
parentd7773d92bd11640a8c950d6c36a9cef1cee36f96 (diff)
downloadcpython-git-95e4d589137260530e18ef98a2ed84ee3ec57e12.tar.gz
String annotations [PEP 563] (#4390)
* Document `from __future__ import annotations` * Provide plumbing and tests for `from __future__ import annotations` * Implement unparsing the AST back to string form This is required for PEP 563 and as such only implements a part of the unparsing process that covers expressions.
Diffstat (limited to 'Include/code.h')
-rw-r--r--Include/code.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/code.h b/Include/code.h
index 8b0f840423..2e661e8b36 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -82,6 +82,7 @@ typedef struct {
#define CO_FUTURE_BARRY_AS_BDFL 0x40000
#define CO_FUTURE_GENERATOR_STOP 0x80000
+#define CO_FUTURE_ANNOTATIONS 0x100000
/* This value is found in the co_cell2arg array when the associated cell
variable does not correspond to an argument. */