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
2 changes: 0 additions & 2 deletions stdlib/@tests/stubtest_allowlists/darwin-py315.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
# TODO: Allowlist entries that should be fixed
# ============================================

_decimal.SPEC_VERSION
_pyrepl.fancy_termios
_pyrepl.unix_console
_pyrepl.unix_eventqueue
ctypes.c_double_complex._type_
ctypes.c_float_complex._type_
ctypes.c_longdouble_complex._type_
decimal.SPEC_VERSION
mmap.MS_ASYNC
mmap.MS_INVALIDATE
mmap.MS_SYNC
Expand Down
11 changes: 0 additions & 11 deletions stdlib/@tests/stubtest_allowlists/py315.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ _interpqueues.create
_interpqueues.put
_json.make_scanner.array_hook
_json.scanstring
_pydecimal.SPEC_VERSION
_pydecimal.__all__
_pyrepl.base_eventqueue
_pyrepl.commands
_pyrepl.completing_reader
Expand Down Expand Up @@ -80,9 +78,6 @@ ast.ImportFrom.is_lazy
ast.dump
ast.parse
ast.type_param.__init__
asyncio.taskgroups.TaskGroup.cancel
asyncio.tools.display_awaited_by_tasks_table
asyncio.tools.display_awaited_by_tasks_tree
base64.a85decode
base64.b16decode
base64.b16encode
Expand Down Expand Up @@ -118,7 +113,6 @@ binascii.b2a_base32
binascii.b2a_base64
binascii.b2a_base85
binascii.unhexlify
cProfile.label
calendar.HTMLCalendar.formatmonthpage
calendar.__all__
calendar.standalone_month_abbr
Expand Down Expand Up @@ -154,9 +148,6 @@ datetime.datetime.fromisoformat
datetime.datetime.strptime
datetime.time.fromisoformat
datetime.time.strptime
dbm.dumb._Database.reorganize
dbm.sqlite3.REORGANIZE
dbm.sqlite3._Database.reorganize
difflib.unified_diff
doctest.DocTestRunner.report_skip
enum.__all__
Expand Down Expand Up @@ -284,7 +275,6 @@ profiling.sampling.sample
profiling.sampling.stack_collector
profiling.sampling.string_table
profiling.tracing
pstats.Stats.print_call_subheading
pydoc.Doc.STDLIB_DIR
pydoc.Doc.getdocloc
pyexpat.XMLParserType.SetBillionLaughsAttackProtectionActivationThreshold
Expand Down Expand Up @@ -341,7 +331,6 @@ sys.last_exc
sys.lazy_modules
sys.set_lazy_imports
sys.set_lazy_imports_filter
sysconfig.is_python_build
tarfile.TarFile.__init__
threading.Condition.locked
threading.__all__
Expand Down
2 changes: 0 additions & 2 deletions stdlib/@tests/stubtest_allowlists/win32-py315.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# TODO: Allowlist entries that should be fixed
# ============================================

_decimal.SPEC_VERSION
_socket.IPV6_HDRINCL
_winapi.DeregisterEventSource
_winapi.EVENTLOG_AUDIT_FAILURE
Expand All @@ -15,7 +14,6 @@ _winapi.GetOEMCP
_winapi.RegisterEventSource
_winapi.ReportEvent
asyncio.windows_events.IocpProactor.finish_socket_func
decimal.SPEC_VERSION
socket.IPV6_HDRINCL
socket.__all__
winreg.DeleteTree
2 changes: 2 additions & 0 deletions stdlib/_decimal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ _TrapType: TypeAlias = type[DecimalException]

__version__: Final[str]
__libmpdec_version__: Final[str]
if sys.version_info >= (3, 15):
SPEC_VERSION: Final[str]

ROUND_DOWN: Final = "ROUND_DOWN"
ROUND_HALF_UP: Final = "ROUND_HALF_UP"
Expand Down
3 changes: 3 additions & 0 deletions stdlib/_pydecimal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ __all__ = [

if sys.version_info >= (3, 14):
__all__ += ["IEEEContext", "IEEE_CONTEXT_MAX_BITS"]

if sys.version_info >= (3, 15):
__all__ += ["SPEC_VERSION"]
2 changes: 2 additions & 0 deletions stdlib/asyncio/taskgroups.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ class TaskGroup:
) -> Task[_T]: ...

def _on_task_done(self, task: Task[object]) -> None: ...
if sys.version_info >= (3, 15):
def cancel(self) -> None: ...
9 changes: 7 additions & 2 deletions stdlib/asyncio/tools.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,10 @@ def build_task_table(result: Iterable[_AwaitedInfo]) -> list[list[int | str]]: .
if sys.version_info >= (3, 14):
def exit_with_permission_help_text() -> None: ...

def display_awaited_by_tasks_table(pid: SupportsIndex) -> None: ...
def display_awaited_by_tasks_tree(pid: SupportsIndex) -> None: ...
if sys.version_info >= (3, 15):
def display_awaited_by_tasks_table(pid: SupportsIndex, retries: SupportsIndex = 3) -> None: ...
def display_awaited_by_tasks_tree(pid: SupportsIndex, retries: SupportsIndex = 3) -> None: ...

else:
def display_awaited_by_tasks_table(pid: SupportsIndex) -> None: ...
def display_awaited_by_tasks_tree(pid: SupportsIndex) -> None: ...
4 changes: 3 additions & 1 deletion stdlib/cProfile.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import _lsprof
import sys
from _typeshed import StrOrBytesPath, Unused
from collections.abc import Callable, Mapping
from types import CodeType
Expand Down Expand Up @@ -28,4 +29,5 @@ class Profile(_lsprof.Profiler):
def __enter__(self) -> Self: ...
def __exit__(self, *exc_info: Unused) -> None: ...

def label(code: str | CodeType) -> _Label: ... # undocumented
if sys.version_info < (3, 15):
def label(code: str | CodeType) -> _Label: ... # undocumented
3 changes: 3 additions & 0 deletions stdlib/dbm/dumb.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ error = OSError
class _Database(MutableMapping[_KeyType, bytes]):
def __init__(self, filebasename: str, mode: str, flag: str = "c") -> None: ...
def sync(self) -> None: ...
if sys.version_info >= (3, 15):
def reorganize(self) -> None: ...

def iterkeys(self) -> Iterator[bytes]: ... # undocumented
def close(self) -> None: ...
def __getitem__(self, key: _KeyType) -> bytes: ...
Expand Down
5 changes: 5 additions & 0 deletions stdlib/dbm/sqlite3.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from _typeshed import ReadableBuffer, StrOrBytesPath, Unused
from collections.abc import Generator, MutableMapping
from typing import Final, Literal, TypeAlias
Expand All @@ -9,6 +10,8 @@ LOOKUP_KEY: Final[LiteralString]
STORE_KV: Final[LiteralString]
DELETE_KEY: Final[LiteralString]
ITER_KEYS: Final[LiteralString]
if sys.version_info >= (3, 15):
REORGANIZE: Final[LiteralString]

_SqliteData: TypeAlias = str | ReadableBuffer | int | float

Expand All @@ -25,5 +28,7 @@ class _Database(MutableMapping[bytes, bytes]):
def keys(self) -> list[bytes]: ... # type: ignore[override]
def __enter__(self) -> Self: ...
def __exit__(self, *args: Unused) -> None: ...
if sys.version_info >= (3, 15):
def reorganize(self) -> None: ...

def open(filename: StrOrBytesPath, /, flag: Literal["r", "w", "c", "n"] = "r", mode: int = 0o666) -> _Database: ...
2 changes: 2 additions & 0 deletions stdlib/decimal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ from typing_extensions import Self, disjoint_base

if sys.version_info >= (3, 14):
from _decimal import IEEE_CONTEXT_MAX_BITS as IEEE_CONTEXT_MAX_BITS, IEEEContext as IEEEContext
if sys.version_info >= (3, 15):
from _decimal import SPEC_VERSION as SPEC_VERSION

_Decimal: TypeAlias = Decimal | int
_DecimalNew: TypeAlias = Decimal | float | str | tuple[int, Sequence[int], int]
Expand Down
3 changes: 3 additions & 0 deletions stdlib/pstats.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class Stats:
def print_callees(self, *amount: _Selector) -> Self: ...
def print_callers(self, *amount: _Selector) -> Self: ...
def print_call_heading(self, name_size: int, column_title: str) -> None: ...
if sys.version_info >= (3, 15):
def print_call_subheading(self, name_size: int) -> None: ...

def print_call_line(self, name_size: int, source: str, call_dict: dict[str, Any], arrow: str = "->") -> None: ...
def print_title(self) -> None: ...
def print_line(self, func: str) -> None: ...
5 changes: 4 additions & 1 deletion stdlib/sysconfig.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def get_paths(scheme: str = ..., vars: dict[str, Any] | None = None, expand: boo
def get_python_version() -> str: ...
def get_platform() -> str: ...

if sys.version_info >= (3, 12):
if sys.version_info >= (3, 15):
def is_python_build() -> bool: ...

elif sys.version_info >= (3, 12):
@overload
def is_python_build() -> bool: ...
@overload
Expand Down
Loading