From a0c01bf1364f2996bb0186ddfc41d74350e01c39 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Fri, 31 May 2019 15:19:50 +0100 Subject: bpo-37115: Support annotations in positional-only arguments (GH-13698) --- Python/compile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index f1c97bdfe4..f6ec929b3c 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1991,6 +1991,8 @@ compiler_visit_annotations(struct compiler *c, arguments_ty args, if (!compiler_visit_argannotations(c, args->args, names)) goto error; + if (!compiler_visit_argannotations(c, args->posonlyargs, names)) + goto error; if (args->vararg && args->vararg->annotation && !compiler_visit_argannotation(c, args->vararg->arg, args->vararg->annotation, names)) -- cgit v1.2.1