Fixed logic bug in dunder all processing for py.typed files.

This commit is contained in:
Eric Traut 2020-09-28 15:59:52 -07:00
parent dc5cd387fc
commit 04d35e9ce4

View File

@ -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();
}
});