pydoc.ispath is a TypeGuard (#8899)

This commit is contained in:
Nikita Sobolev
2022-10-15 00:36:07 +03:00
committed by GitHub
parent 4bd13ff419
commit e6b00f1eb6

View File

@@ -6,6 +6,7 @@ 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
__all__ = ["help"]
@@ -231,5 +232,5 @@ class ModuleScanner:
) -> None: ...
def apropos(key: str) -> None: ...
def ispath(x: Any) -> bool: ...
def ispath(x: object) -> TypeGuard[str]: ...
def cli() -> None: ...