mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
unify some ast.argument's attrs; change Attribute column offset (closes #16795)
Patch from Sven Brauch.
This commit is contained in:
parent
c45e041bff
commit
cda75be02a
11 changed files with 250 additions and 235 deletions
|
@ -1498,15 +1498,15 @@ compiler_visit_annotations(struct compiler *c, arguments_ty args,
|
|||
|
||||
if (compiler_visit_argannotations(c, args->args, names))
|
||||
goto error;
|
||||
if (args->varargannotation &&
|
||||
compiler_visit_argannotation(c, args->vararg,
|
||||
args->varargannotation, names))
|
||||
if (args->vararg && args->vararg->annotation &&
|
||||
compiler_visit_argannotation(c, args->vararg->arg,
|
||||
args->vararg->annotation, names))
|
||||
goto error;
|
||||
if (compiler_visit_argannotations(c, args->kwonlyargs, names))
|
||||
goto error;
|
||||
if (args->kwargannotation &&
|
||||
compiler_visit_argannotation(c, args->kwarg,
|
||||
args->kwargannotation, names))
|
||||
if (args->kwarg && args->kwarg->annotation &&
|
||||
compiler_visit_argannotation(c, args->kwarg->arg,
|
||||
args->kwarg->annotation, names))
|
||||
goto error;
|
||||
|
||||
if (!return_str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue