Skip to content

Commit

Permalink
Fixed bug that results in a missing reportUnknownArgumentType error…
Browse files Browse the repository at this point in the history
… if the argument is an expression involving an `__init__` parameter in an unannotated (pseudo-generic) class.
  • Loading branch information
erictraut committed Nov 8, 2024
1 parent c616423 commit ca2ea7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12489,7 +12489,7 @@ export function createTypeEvaluator(
}

if (!options.skipUnknownArgCheck) {
const simplifiedType = removeUnbound(argType);
const simplifiedType = makeTopLevelTypeVarsConcrete(removeUnbound(argType));
const fileInfo = AnalyzerNodeInfo.getFileInfo(argParam.errorNode);

function getDiagAddendum() {
Expand Down

0 comments on commit ca2ea7a

Please sign in to comment.