Skip to content

Commit

Permalink
PEP 505: add some missing things
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbirdguythatuknownot committed Nov 13, 2023
1 parent 661af74 commit 4fd27e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Parser/action_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,9 @@ _PyPegen_get_expr_name(expr_ty e)
assert(e != NULL);
switch (e->kind) {
case Attribute_kind:
return "attribute";
return e->v.Attribute.aware ? "attribute" : "safe attribute";
case Subscript_kind:
return "subscript";
return e->v.Subscript.aware ? "subscript" : "safe subscript";
case Starred_kind:
return "starred";
case Name_kind:
Expand All @@ -1054,7 +1054,7 @@ _PyPegen_get_expr_name(expr_ty e)
case Lambda_kind:
return "lambda";
case Call_kind:
return "function call";
return e->v.Call.aware ? "function call" : "safe function call";
case BoolOp_kind:
case BinOp_kind:
case UnaryOp_kind:
Expand Down

0 comments on commit 4fd27e9

Please sign in to comment.