Add __all__ to most modules beginning with 'n', 'o' and 'p' (#7345)

This commit is contained in:
Alex Waygood
2022-02-22 01:57:03 +00:00
committed by GitHub
parent 09c945b32b
commit d6ce3abd68
20 changed files with 377 additions and 2 deletions

View File

@@ -4,6 +4,8 @@ from reprlib import Repr
from types import MethodType, ModuleType, TracebackType
from typing import IO, Any, AnyStr, Callable, Container, Mapping, MutableMapping, NoReturn, TypeVar
__all__ = ["help"]
# the return type of sys.exc_info(), used by ErrorDuringImport.__init__
_Exc_Info = tuple[type[BaseException] | None, BaseException | None, TracebackType | None]