mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
bpo-37115: Support annotations in positional-only arguments (GH-13698)
This commit is contained in:
parent
2f58a84104
commit
a0c01bf136
3 changed files with 57 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue