Skip to content

Commit

Permalink
Fixed a bug that resulted in an incorrect error when using a `# pyrig…
Browse files Browse the repository at this point in the history
…ht: standard` directive. This addresses #9085.
  • Loading branch information
erictraut committed Sep 26, 2024
1 parent 553222b commit d2bd07b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pyright-internal/src/analyzer/commentUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ function _parsePyrightOperand(
length: operandSplit[0].length,
});

// Handle basic directives "basic" and "strict".
// Handle basic directives "basic", "standard" and "strict".
if (operandSplit.length === 1) {
if (trimmedRule && [strictSetting, basicSetting].some((setting) => trimmedRule === setting)) {
if (trimmedRule && [strictSetting, standardSetting, basicSetting].some((setting) => trimmedRule === setting)) {
return ruleSet;
}
}
Expand Down

0 comments on commit d2bd07b

Please sign in to comment.