Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stdlib/pydoc.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from _typeshed import OptExcInfo, SupportsWrite, Unused
from _typeshed import OptExcInfo, StrPath, SupportsWrite, Unused
from abc import abstractmethod
from builtins import list as _list # "list" conflicts with method name
from collections.abc import Callable, Container, Mapping, MutableMapping
Expand Down Expand Up @@ -35,10 +35,10 @@ def classify_class_attrs(object: object) -> list[tuple[str, str, type, str]]: ..

if sys.version_info >= (3, 13):
@deprecated("Deprecated since Python 3.13.")
def ispackage(path: str) -> bool: ... # undocumented
def ispackage(path: StrPath) -> bool: ... # undocumented

else:
def ispackage(path: str) -> bool: ... # undocumented
def ispackage(path: StrPath) -> bool: ... # undocumented

def source_synopsis(file: IO[AnyStr]) -> AnyStr | None: ...
def synopsis(filename: str, cache: MutableMapping[str, tuple[int, str]] = {}) -> str | None: ...
Expand Down