From 71011e2c2b6511e14099d0a02d8c137bb22784ad Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Mon, 23 Apr 2007 11:05:01 +0000 Subject: Allow decorators and return annotations to be used together (fixes SF#1697248) --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') 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; -- cgit v1.2.1