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
3 changes: 2 additions & 1 deletion stdlib/_ctypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,6 @@ def call_cdeclfunction(address: int, arguments: tuple[Any, ...], /) -> Any: ...
def call_function(address: int, arguments: tuple[Any, ...], /) -> Any: ...

# dllist() is available on Linux and other platforms like NetBSD
if sys.version_info >= (3, 15) and sys.platform != "win32" and sys.platform != "darwin":
if sys.version_info >= (3, 14) and sys.platform != "win32" and sys.platform != "darwin":
# Added in Python 3.14.7
def dllist() -> list[str]: ...
3 changes: 2 additions & 1 deletion stdlib/_winapi.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,6 @@ if sys.platform == "win32":
def CopyFile2(existing_file_name: str, new_file_name: str, flags: int, progress_routine: int | None = None) -> int: ...
def NeedCurrentDirectoryForExePath(exe_name: str, /) -> bool: ...

if sys.version_info >= (3, 15):
if sys.version_info >= (3, 13):
# Added in Python 3.13.15, 3.14.7
def GetTickCount64() -> int: ...
3 changes: 2 additions & 1 deletion stdlib/concurrent/futures/process.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ class _ExecutorManagerThread(Thread):
def process_result_item(self, result_item: int | _ResultItem) -> None: ...
def is_shutting_down(self) -> bool: ...

if sys.version_info >= (3, 15):
if sys.version_info >= (3, 14):
# bpe_message parameter added in 3.14.7
def terminate_broken(self, cause: str, bpe_message: str | None = None) -> None: ...
else:
def terminate_broken(self, cause: str) -> None: ...
Expand Down
9 changes: 6 additions & 3 deletions stdlib/imaplib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class IMAP4:
if sys.version_info >= (3, 14):
def idle(self, duration: float | None = None) -> Idler: ...

if sys.version_info >= (3, 15):
if sys.version_info >= (3, 13):
# Default was fixed in Python 3.13.15, 3.14.7
def list(self, directory: str = "", pattern: str = "*") -> tuple[str, _AnyResponseData]: ...
else:
def list(self, directory: str = '""', pattern: str = "*") -> tuple[str, _AnyResponseData]: ...
Expand All @@ -93,7 +94,8 @@ class IMAP4:
def login_cram_md5(self, user: str, password: str) -> _CommandResults: ...
def logout(self) -> tuple[str, _AnyResponseData]: ...

if sys.version_info >= (3, 15):
if sys.version_info >= (3, 13):
# Default was fixed in Python 3.13.15, 3.14.7
def lsub(self, directory: str = "", pattern: str = "*") -> _CommandResults: ...
else:
def lsub(self, directory: str = '""', pattern: str = "*") -> _CommandResults: ...
Expand All @@ -108,7 +110,8 @@ class IMAP4:
def select(self, mailbox: str = "INBOX", readonly: bool = False) -> tuple[str, _list[bytes | None]]: ...
def setacl(self, mailbox: str, who: str, what: str) -> _CommandResults: ...

if sys.version_info >= (3, 15):
if sys.version_info >= (3, 13):
# Parameter "mailbox" was added in Python 3.13.15, 3.14.7
def setannotation(self, mailbox: str | bytes, *args: str) -> _CommandResults: ...
else:
def setannotation(self, *args: str) -> _CommandResults: ...
Expand Down