Deprecate undocumented pydoc.ispackage (#13865)

This commit is contained in:
Semyon Moroz
2025-04-24 15:11:45 +04:00
committed by GitHub
parent e3f0de782d
commit 578cddef1f
+9 -2
View File
@@ -6,7 +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, Final, NoReturn, Protocol, TypeVar
from typing_extensions import TypeGuard
from typing_extensions import TypeGuard, deprecated
__all__ = ["help"]
@@ -31,7 +31,14 @@ def stripid(text: str) -> str: ...
def allmethods(cl: type) -> MutableMapping[str, MethodType]: ...
def visiblename(name: str, all: Container[str] | None = None, obj: object = None) -> bool: ...
def classify_class_attrs(object: object) -> list[tuple[str, str, type, str]]: ...
def ispackage(path: str) -> bool: ...
if sys.version_info >= (3, 13):
@deprecated("Deprecated in Python 3.13.")
def ispackage(path: str) -> bool: ...
else:
def ispackage(path: str) -> bool: ...
def source_synopsis(file: IO[AnyStr]) -> AnyStr | None: ...
def synopsis(filename: str, cache: MutableMapping[str, tuple[int, str]] = {}) -> str | None: ...