diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2007-04-23 11:05:01 +0000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2007-04-23 11:05:01 +0000 |
commit | 13f4e4916b07e57a308e4df49a673b638a56dd9f (patch) | |
tree | 2133854ff09301882d1e10ab0a8cbb69e9982f5d /Python/ast.c | |
parent | c9001d179c76cf3e7805862400e28b74bec67743 (diff) | |
download | cpython-13f4e4916b07e57a308e4df49a673b638a56dd9f.tar.gz |
Allow decorators and return annotations to be used together (fixes SF#1697248)
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 1bd1430fdf..f8bcdf291a 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -983,7 +983,7 @@ ast_for_funcdef(struct compiling *c, const node *n) REQ(n, funcdef); - if (NCH(n) == 6) { /* decorators are present */ + if (NCH(n) == 6 || NCH(n) == 8) { /* decorators are present */ decorator_seq = ast_for_decorators(c, CHILD(n, 0)); if (!decorator_seq) return NULL; |