mirror of
https://github.com/microsoft/pyright.git
synced 2024-11-13 09:34:44 +03:00
Fixed logic bug in dunder all processing for py.typed files.
This commit is contained in:
parent
dc5cd387fc
commit
04d35e9ce4
@ -246,7 +246,7 @@ export class Binder extends ParseTreeWalker {
|
||||
this._potentialPrivateSymbols.forEach((symbol, name) => {
|
||||
// If this symbol was found in the dunder all, don't mark it
|
||||
// as externally hidden.
|
||||
if (this._dunderAllNames?.some((sym) => sym === name)) {
|
||||
if (!this._dunderAllNames?.some((sym) => sym === name)) {
|
||||
symbol.setIsExternallyHidden();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user