mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-33475: Fix and improve converting annotations to strings. (GH-6774)
This commit is contained in:
parent
d852142cd7
commit
64fddc423f
5 changed files with 356 additions and 601 deletions
|
@ -1822,7 +1822,7 @@ error:
|
|||
static int
|
||||
compiler_visit_annexpr(struct compiler *c, expr_ty annotation)
|
||||
{
|
||||
ADDOP_LOAD_CONST_NEW(c, _PyAST_ExprAsUnicode(annotation, 1));
|
||||
ADDOP_LOAD_CONST_NEW(c, _PyAST_ExprAsUnicode(annotation));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue