diff --git a/packages/pyright-internal/src/analyzer/program.ts b/packages/pyright-internal/src/analyzer/program.ts index 549599659..95e7a1d8e 100644 --- a/packages/pyright-internal/src/analyzer/program.ts +++ b/packages/pyright-internal/src/analyzer/program.ts @@ -544,7 +544,7 @@ export class Program { this._sourceFileList.forEach((fileInfo) => { const sourceFile = fileInfo.sourceFile; - if (sourceFile.isCheckingRequired()) { + if (isUserCode(fileInfo) && sourceFile.isCheckingRequired()) { if (this._shouldCheckFile(fileInfo)) { sourceFile.getIPythonMode() === IPythonMode.CellDocs ? cellsToAnalyzeCount++