mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
pydoc.ispath is a TypeGuard (#8899)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user