commit | 71011e2c2b6511e14099d0a02d8c137bb22784ad | [log] [tgz] |
---|---|---|
author | Nick Coghlan <ncoghlan@gmail.com> | Mon Apr 23 11:05:01 2007 +0000 |
committer | Nick Coghlan <ncoghlan@gmail.com> | Mon Apr 23 11:05:01 2007 +0000 |
tree | 647b4874e1b4b0360b7f314038e7ffe3317c4e36 | |
parent | 4138bfec0a189d180b7bcb89e7c8ce8a456a6b55 [diff] |
Allow decorators and return annotations to be used together (fixes SF#1697248)
diff --git a/Python/ast.c b/Python/ast.c index 1bd1430..f8bcdf2 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -983,7 +983,7 @@ 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;