mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20625: Fix compilation issue
This commit is contained in:
parent
dc87052c0c
commit
6acc5e1330
1 changed files with 2 additions and 1 deletions
|
@ -1532,8 +1532,9 @@ compiler_visit_argannotation(struct compiler *c, identifier id,
|
|||
expr_ty annotation, PyObject *names)
|
||||
{
|
||||
if (annotation) {
|
||||
PyObject *mangled;
|
||||
VISIT(c, expr, annotation);
|
||||
PyObject *mangled = _Py_Mangle(c->u->u_private, id);
|
||||
mangled = _Py_Mangle(c->u->u_private, id);
|
||||
if (!mangled)
|
||||
return -1;
|
||||
if (PyList_Append(names, mangled) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue