mirror of
https://github.com/microsoft/pyright.git
synced 2025-12-23 09:19:29 +00:00
Merge branch 'main' into issue-10625
This commit is contained in:
commit
de15300fa1
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue