diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index 9252603b8c5b..7d277a175f88 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -15617,7 +15617,7 @@ export function createTypeEvaluator( flags: EvalFlags ) { // Self doesn't support any type arguments. - if (typeArgs) { + if (typeArgs && typeArgs.length > 0) { addDiagnostic( DiagnosticRule.reportInvalidTypeArguments, LocMessage.typeArgsExpectingNone().format({