mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-06 12:57:14 +03:00
Added optimization to shortcut overlapping overload checks if the diagnostic is suppressed.
This commit is contained in:
parent
51c98aa945
commit
3d52679f59
@ -3211,6 +3211,10 @@ export class Checker extends ParseTreeWalker {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._fileInfo.diagnosticRuleSet.reportInconsistentOverload === 'none') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Verify that all overload signatures are assignable to implementation signature.
|
||||
OverloadedFunctionType.getOverloads(type).forEach((overload, index) => {
|
||||
const diag = new DiagnosticAddendum();
|
||||
|
Loading…
Reference in New Issue
Block a user