Issue #20625: Fix compilation issue
This commit is contained in:
parent
5f47ac2aaa
commit
065efc3072
|
@ -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…
Reference in New Issue