Skip to content
Merged
Show file tree
Hide file tree
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/argparse.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class _ActionsContainer:
conflict_handler: str = ...,
) -> _ArgumentGroup: ...
@overload
@deprecated("The `prefix_chars` parameter deprecated since Python 3.14.")
@deprecated("The `prefix_chars` parameter is deprecated.")
def add_argument_group(
self,
title: str | None = None,
Expand Down Expand Up @@ -530,7 +530,7 @@ class Namespace(_AttributeHolder):
def __eq__(self, other: object) -> bool: ...
__hash__: ClassVar[None] # type: ignore[assignment]

@deprecated("Deprecated since Python 3.14. Open files after parsing arguments instead.")
@deprecated("Deprecated; may leave files open. Open files after parsing arguments instead.")
class FileType:
# undocumented
_mode: str
Expand All @@ -556,7 +556,7 @@ class _ArgumentGroup(_ActionsContainer):
conflict_handler: str = ...,
) -> None: ...
@overload
@deprecated("Undocumented `prefix_chars` parameter is deprecated since Python 3.14.")
@deprecated("Undocumented `prefix_chars` parameter is deprecated.")
def __init__(
self,
container: _ActionsContainer,
Expand Down
8 changes: 4 additions & 4 deletions stdlib/asyncio/coroutines.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ def iscoroutine(obj: object) -> TypeIs[Coroutine[Any, Any, Any]]: ...

if sys.version_info >= (3, 11):
@overload
@deprecated("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead.")
@deprecated("Deprecated; will be removed in Python 3.16. Use `inspect.iscoroutinefunction()` instead.")
def iscoroutinefunction(func: Callable[..., Coroutine[Any, Any, Any]]) -> bool: ...
@overload
@deprecated("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead.")
@deprecated("Deprecated; will be removed in Python 3.16. Use `inspect.iscoroutinefunction()` instead.")
def iscoroutinefunction(func: Callable[_P, Awaitable[_T]]) -> TypeGuard[Callable[_P, Coroutine[Any, Any, _T]]]: ...
@overload
@deprecated("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead.")
@deprecated("Deprecated; will be removed in Python 3.16. Use `inspect.iscoroutinefunction()` instead.")
def iscoroutinefunction(func: Callable[_P, object]) -> TypeGuard[Callable[_P, Coroutine[Any, Any, Any]]]: ...
@overload
@deprecated("Deprecated since Python 3.14. Use `inspect.iscoroutinefunction()` instead.")
@deprecated("Deprecated; will be removed in Python 3.16. Use `inspect.iscoroutinefunction()` instead.")
def iscoroutinefunction(func: object) -> TypeGuard[Callable[..., Coroutine[Any, Any, Any]]]: ...
else:
# Sometimes needed in Python < 3.11 due to the fact that it supports @coroutine
Expand Down
12 changes: 6 additions & 6 deletions stdlib/asyncio/events.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,10 @@ else:
def new_event_loop(self) -> AbstractEventLoop: ...
# Child processes handling (Unix only).
@abstractmethod
@deprecated("Deprecated since Python 3.12; removed in Python 3.14.")
@deprecated("Deprecated; removed in Python 3.14.")
def get_child_watcher(self) -> AbstractChildWatcher: ...
@abstractmethod
@deprecated("Deprecated since Python 3.12; removed in Python 3.14.")
@deprecated("Deprecated; removed in Python 3.14.")
def set_child_watcher(self, watcher: AbstractChildWatcher) -> None: ...

AbstractEventLoopPolicy = _AbstractEventLoopPolicy
Expand All @@ -657,15 +657,15 @@ if sys.version_info >= (3, 14):
def _get_event_loop_policy() -> _AbstractEventLoopPolicy: ...
def _set_event_loop_policy(policy: _AbstractEventLoopPolicy | None) -> None: ...

@deprecated("Deprecated since Python 3.14; will be removed in Python 3.16.")
@deprecated("Deprecated; will be removed in Python 3.16.")
def get_event_loop_policy() -> _AbstractEventLoopPolicy: ...
@deprecated("Deprecated since Python 3.14; will be removed in Python 3.16.")
@deprecated("Deprecated; will be removed in Python 3.16.")
def set_event_loop_policy(policy: _AbstractEventLoopPolicy | None) -> None: ...
def set_event_loop(loop: AbstractEventLoop | None) -> None: ...
def new_event_loop() -> AbstractEventLoop: ...

if sys.version_info < (3, 14):
@deprecated("Deprecated since Python 3.12; removed in Python 3.14.")
@deprecated("Deprecated; removed in Python 3.14.")
def get_child_watcher() -> AbstractChildWatcher: ...
@deprecated("Deprecated since Python 3.12; removed in Python 3.14.")
@deprecated("Deprecated; removed in Python 3.14.")
def set_child_watcher(watcher: AbstractChildWatcher) -> None: ...
2 changes: 1 addition & 1 deletion stdlib/codecs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def getincrementaldecoder(encoding: str) -> _IncrementalDecoder: ...

def getreader(encoding: str) -> _StreamReader: ...
def getwriter(encoding: str) -> _StreamWriter: ...
@deprecated("Deprecated since Python 3.14. Use `open()` instead.")
@deprecated("Deprecated. Use `open()` instead.")
def open(
filename: str, mode: str = "r", encoding: str | None = None, errors: str = "strict", buffering: int = -1
) -> StreamReaderWriter: ...
Expand Down
4 changes: 2 additions & 2 deletions stdlib/ctypes/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ c_buffer = create_string_buffer
def create_unicode_buffer(init: int | str, size: int | None = None) -> Array[c_wchar]: ...

if sys.version_info < (3, 15):
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def SetPointerType(pointer: type[_Pointer[Any]], cls: _CTypeBaseType) -> None: ...

@deprecated("Soft deprecated since Python 3.13. Use multiplication instead.")
@deprecated("Soft deprecated. Use multiplication instead.")
def ARRAY(typ: _CT, len: int) -> Array[_CT]: ...

if sys.platform == "win32":
Expand Down
2 changes: 1 addition & 1 deletion stdlib/http/server.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def executable(path: StrPath) -> bool: ... # undocumented

if sys.version_info < (3, 15):
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated and unsafe; will be removed in Python 3.15.")
class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
cgi_directories: list[str]
have_fork: bool # undocumented
Expand Down
2 changes: 1 addition & 1 deletion stdlib/importlib/resources/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ else:
def read_text(package: Package, resource: Resource, encoding: str = "utf-8", errors: str = "strict") -> str: ...
def path(package: Package, resource: Resource) -> AbstractContextManager[Path, Literal[False]]: ...
def is_resource(package: Package, name: str) -> bool: ...
@deprecated("Deprecated since Python 3.11. Use `files(anchor).iterdir()`.")
@deprecated("Deprecated; limited resource support. Use `files(anchor).iterdir()`.")
def contents(package: Package) -> Iterator[str]: ...

if sys.version_info >= (3, 11):
Expand Down
2 changes: 1 addition & 1 deletion stdlib/importlib/resources/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from typing import IO, Any, Literal, Protocol, overload, runtime_checkable
from typing_extensions import deprecated

if sys.version_info >= (3, 11):
@deprecated("Deprecated since Python 3.12. Use `importlib.resources.abc.TraversableResources` instead.")
@deprecated("Deprecated. Use `importlib.resources.abc.TraversableResources` instead.")
class ResourceReader(metaclass=ABCMeta):
@abstractmethod
def open_resource(self, resource: str) -> IO[bytes]: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/locale.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def getpreferredencoding(do_setlocale: bool = True) -> _str: ...
def normalize(localename: _str) -> _str: ...

if sys.version_info < (3, 13):
@deprecated("Deprecated since Python 3.11; removed in Python 3.13. Use `locale.setlocale(locale.LC_ALL, '')` instead.")
@deprecated("Deprecated; removed in Python 3.13. Use `locale.setlocale(locale.LC_ALL, '')` instead.")
def resetlocale(category: int = ...) -> None: ...

if sys.version_info < (3, 12):
Expand Down
4 changes: 2 additions & 2 deletions stdlib/nturl2path.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing_extensions import deprecated

@deprecated("The `nturl2path` module is deprecated since Python 3.14.")
@deprecated("Deprecated; use `urllib.request` file-URL helpers instead.")
def url2pathname(url: str) -> str: ...
@deprecated("The `nturl2path` module is deprecated since Python 3.14.")
@deprecated("Deprecated; use `urllib.request` file-URL helpers instead.")
def pathname2url(p: str) -> str: ...
4 changes: 2 additions & 2 deletions stdlib/pathlib/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class PurePath(PathLike[str]):
def __rtruediv__(self, key: StrPath) -> Self: ...
def __bytes__(self) -> bytes: ...
def as_posix(self) -> str: ...
@deprecated("Deprecated since Python 3.14; will be removed in Python 3.19. Use `Path.as_uri()` instead.")
@deprecated("Deprecated; will be removed in Python 3.19. Use `Path.as_uri()` instead.")
def as_uri(self) -> str: ...
def is_absolute(self) -> bool: ...
if sys.version_info < (3, 15):
Expand All @@ -112,7 +112,7 @@ class PurePath(PathLike[str]):
@overload
def is_relative_to(self, other: StrPath, /) -> bool: ...
@overload
@deprecated("Passing additional arguments is deprecated since Python 3.12; removed in Python 3.14.")
@deprecated("Passing additional arguments is deprecated; removed in Python 3.14.")
def is_relative_to(self, other: StrPath, /, *_deprecated: StrPath) -> bool: ...

if sys.version_info >= (3, 12):
Expand Down
4 changes: 2 additions & 2 deletions stdlib/pkgutil.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ if sys.version_info < (3, 12):
def __init__(self, fullname: str, file: IO[str], filename: StrOrBytesPath, etc: tuple[str, str, int]) -> None: ...

if sys.version_info < (3, 14):
@deprecated("Deprecated since Python 3.12; removed in Python 3.14. Use `importlib.util.find_spec()` instead.")
@deprecated("Deprecated; removed in Python 3.14. Use `importlib.util.find_spec()` instead.")
def find_loader(fullname: str) -> LoaderProtocol | None: ...
@deprecated("Deprecated since Python 3.12; removed in Python 3.14. Use `importlib.util.find_spec()` instead.")
@deprecated("Deprecated; removed in Python 3.14. Use `importlib.util.find_spec()` instead.")
def get_loader(module_or_name: str) -> LoaderProtocol | None: ...

def get_importer(path_item: StrOrBytesPath) -> PathEntryFinderProtocol | None: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/platform.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def mac_ver(
) -> tuple[str, tuple[str, str, str], str]: ...

if sys.version_info < (3, 15):
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def java_ver(
release: str = "",
vendor: str = "",
Expand Down
4 changes: 2 additions & 2 deletions stdlib/pty.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ if sys.platform != "win32":
def openpty() -> tuple[int, int]: ...

if sys.version_info < (3, 14):
@deprecated("Deprecated since Python 3.12; removed in Python 3.14. Use `openpty()` instead.")
@deprecated("Deprecated; removed in Python 3.14. Use `openpty()` instead.")
def master_open() -> tuple[int, str]: ...
@deprecated("Deprecated since Python 3.12; removed in Python 3.14. Use `openpty()` instead.")
@deprecated("Deprecated; removed in Python 3.14. Use `openpty()` instead.")
def slave_open(tty_name: str) -> int: ...

def fork() -> tuple[int, int]: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/pydoc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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]]: ...
@deprecated("Deprecated since Python 3.13.")
@deprecated("Deprecated.")
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
2 changes: 1 addition & 1 deletion stdlib/re.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -342,5 +342,5 @@ def escape(pattern: AnyStr) -> AnyStr: ...
def purge() -> None: ...

if sys.version_info < (3, 13):
@deprecated("Deprecated since Python 3.11; removed in Python 3.13. Use `re.compile()` instead.")
@deprecated("Deprecated; removed in Python 3.13. Use `re.compile()` instead.")
def template(pattern: AnyStr | Pattern[AnyStr], flags: _FlagsType = 0) -> Pattern[AnyStr]: ... # undocumented
2 changes: 1 addition & 1 deletion stdlib/symtable.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Function(SymbolTable):
def get_nonlocals(self) -> tuple[str, ...]: ...

class Class(SymbolTable):
@deprecated("Deprecated since Python 3.14; will be removed in Python 3.16.")
@deprecated("Deprecated; will be removed in Python 3.16.")
def get_methods(self) -> tuple[str, ...]: ...

class Symbol:
Expand Down
4 changes: 2 additions & 2 deletions stdlib/sysconfig.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ elif sys.version_info >= (3, 11):
@overload
def is_python_build() -> bool: ...
@overload
@deprecated("The `check_home` parameter is deprecated since Python 3.12; removed in Python 3.15.")
@deprecated("The `check_home` parameter is deprecated; removed in Python 3.15.")
def is_python_build(check_home: object = None) -> bool: ...
else:
@overload
def is_python_build() -> bool: ...
@overload
@deprecated("The `check_home` parameter is deprecated since Python 3.12; removed in Python 3.15.")
@deprecated("The `check_home` parameter is deprecated; removed in Python 3.15.")
def is_python_build(check_home: bool = False) -> bool: ...

def parse_config_h(fp: IO[Any], vars: dict[str, Any] | None = None) -> dict[str, Any]: ...
Expand Down
4 changes: 2 additions & 2 deletions stdlib/tarfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,10 @@ class TarInfo:
def __init__(self, name: str = "") -> None: ...

@property
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.16.")
@deprecated("Deprecated; will be removed in Python 3.16.")
def tarfile(self) -> TarFile | None: ...
@tarfile.setter
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.16.")
@deprecated("Deprecated; will be removed in Python 3.16.")
def tarfile(self, tarfile: TarFile | None) -> None: ...

@classmethod
Expand Down
8 changes: 4 additions & 4 deletions stdlib/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ class Variable:
def trace_add(self, mode: Literal["array", "read", "write", "unset"], callback: Callable[[str, str, str], object]) -> str: ...
def trace_remove(self, mode: Literal["array", "read", "write", "unset"], cbname: str) -> None: ...
def trace_info(self) -> list[tuple[tuple[Literal["array", "read", "write", "unset"], ...], str]]: ...
@deprecated("Deprecated since Python 3.14. Use `trace_add()` instead.")
@deprecated("Deprecated; will be removed in Python 3.17. Use `trace_add()` instead.")
def trace(self, mode, callback) -> str: ...
@deprecated("Deprecated since Python 3.14. Use `trace_add()` instead.")
@deprecated("Deprecated; will be removed in Python 3.17. Use `trace_add()` instead.")
def trace_variable(self, mode, callback) -> str: ...
@deprecated("Deprecated since Python 3.14. Use `trace_remove()` instead.")
@deprecated("Deprecated; will be removed in Python 3.17. Use `trace_remove()` instead.")
def trace_vdelete(self, mode, cbname) -> None: ...
@deprecated("Deprecated since Python 3.14. Use `trace_info()` instead.")
@deprecated("Deprecated; will be removed in Python 3.17. Use `trace_info()` instead.")
def trace_vinfo(self) -> list[Incomplete]: ...
def __eq__(self, other: object) -> bool: ...
def __del__(self) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def overload(func: _F) -> _F: ...
def no_type_check(arg: _F) -> _F: ...

if sys.version_info < (3, 15):
@deprecated("Deprecated since Python 3.13; removed in Python 3.15.")
@deprecated("Deprecated; removed in Python 3.15.")
def no_type_check_decorator(decorator: Callable[_P, _T]) -> Callable[_P, _T]: ...

if sys.version_info >= (3, 15):
Expand Down
6 changes: 3 additions & 3 deletions stdlib/unittest/loader.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ class TestLoader:
defaultTestLoader: TestLoader

if sys.version_info < (3, 13):
@deprecated("Deprecated since Python 3.11; removed in Python 3.13.")
@deprecated("Deprecated; removed in Python 3.13.")
def getTestCaseNames(
testCaseClass: type[unittest.case.TestCase],
prefix: str,
sortUsing: _SortComparisonMethod = ...,
testNamePatterns: list[str] | None = None,
) -> Sequence[str]: ...
@deprecated("Deprecated since Python 3.11; removed in Python 3.13.")
@deprecated("Deprecated; removed in Python 3.13.")
def makeSuite(
testCaseClass: type[unittest.case.TestCase],
prefix: str = "test",
sortUsing: _SortComparisonMethod = ...,
suiteClass: _SuiteClass = ...,
) -> unittest.suite.TestSuite: ...
@deprecated("Deprecated since Python 3.11; removed in Python 3.13.")
@deprecated("Deprecated; removed in Python 3.13.")
def findTestCases(
module: ModuleType, prefix: str = "test", sortUsing: _SortComparisonMethod = ..., suiteClass: _SuiteClass = ...
) -> unittest.suite.TestSuite: ...
2 changes: 1 addition & 1 deletion stdlib/unittest/main.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TestProgram:
) -> None: ...

if sys.version_info < (3, 13):
@deprecated("Deprecated since Python 3.11; removed in Python 3.13.")
@deprecated("Deprecated; removed in Python 3.13.")
def usageExit(self, msg: Any = None) -> None: ...

def parseArgs(self, argv: list[str]) -> None: ...
Expand Down
10 changes: 5 additions & 5 deletions stdlib/wave.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class Wave_read:
def getcompname(self) -> str: ...
def getparams(self) -> _wave_params: ...
if sys.version_info < (3, 15):
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def getmarkers(self) -> None: ...
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def getmark(self, id: Any) -> NoReturn: ...

def setpos(self, pos: int) -> None: ...
Expand Down Expand Up @@ -85,11 +85,11 @@ class Wave_write:
def getparams(self) -> _wave_params: ...

if sys.version_info < (3, 15):
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def getmark(self, id: Any) -> NoReturn: ...
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
@deprecated("Deprecated; will be removed in Python 3.15.")
def getmarkers(self) -> None: ...

def tell(self) -> int: ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/webbrowser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if sys.platform == "win32":

if sys.platform == "darwin":
if sys.version_info < (3, 13):
@deprecated("Deprecated since Python 3.11; removed in Python 3.13.")
@deprecated("Deprecated; removed in Python 3.13.")
class MacOSX(BaseBrowser):
def __init__(self, name: str) -> None: ...
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...
Expand Down