mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Deprecate undocumented pydoc.ispackage (#13865)
This commit is contained in:
+9
-2
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user