Merge branch 'main' into issue-10625

This commit is contained in:
Eric Traut 2025-09-01 11:04:45 -07:00 committed by GitHub
commit de15300fa1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4417,6 +4417,11 @@ export class Checker extends ParseTreeWalker {
return;
}
// Skip this for keyword argument names.
if (node.parent?.nodeType === ParseNodeType.Argument && node.parent.d.name === node) {
return;
}
if (!AnalyzerNodeInfo.isCodeUnreachable(node)) {
const type = this._evaluator.getType(node);