Type and mark as final module-level dunders not meant to be overwritten in stdlib/ (#9709)

This commit is contained in:
Avasam
2023-02-12 11:15:20 -05:00
committed by GitHub
parent 35871f4222
commit a768744d51
8 changed files with 25 additions and 22 deletions

View File

@@ -6,16 +6,16 @@ from collections.abc import Callable, Container, Mapping, MutableMapping
from reprlib import Repr
from types import MethodType, ModuleType, TracebackType
from typing import IO, Any, AnyStr, NoReturn, TypeVar
from typing_extensions import TypeGuard
from typing_extensions import Final, TypeGuard
__all__ = ["help"]
_T = TypeVar("_T")
__author__: str
__date__: str
__version__: str
__credits__: str
__author__: Final[str]
__date__: Final[str]
__version__: Final[str]
__credits__: Final[str]
def pathdirs() -> list[str]: ...
def getdoc(object: object) -> str: ...