Skip to content

Commit

Permalink
Fixed bug that results in an extraneous } character in stub output.…
Browse files Browse the repository at this point in the history
… This addresses microsoft#6399.
  • Loading branch information
erictraut committed Dec 11, 2023
1 parent 5e07769 commit 699eef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/parseTreeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export function printExpression(node: ExpressionNode, flags = PrintExpressionFla
})
.join(' ');

return node.isParenthesized ? `(${listStr}})` : listStr;
return node.isParenthesized ? `(${listStr})` : listStr;
}

case ParseNodeType.Slice: {
Expand Down

0 comments on commit 699eef8

Please sign in to comment.