Skip to content

Commit d574139

Browse files
authored
Update builtins to 3.14 (python#14161)
1 parent 4a62654 commit d574139

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ _thread.RLock.locked
88
_thread.set_name
99
asyncio.eager_task_factory
1010
asyncio.tasks.eager_task_factory
11-
builtins.bytearray.resize
12-
builtins.int.__round__
1311
compression.gzip.GzipFile.readinto
1412
compression.gzip.GzipFile.readinto
1513
compression.gzip.GzipFile.readinto1

stdlib/builtins.pyi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,11 @@ class int:
331331
def __trunc__(self) -> int: ...
332332
def __ceil__(self) -> int: ...
333333
def __floor__(self) -> int: ...
334-
def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
334+
if sys.version_info >= (3, 14):
335+
def __round__(self, ndigits: SupportsIndex | None = None, /) -> int: ...
336+
else:
337+
def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
338+
335339
def __getnewargs__(self) -> tuple[int]: ...
336340
def __eq__(self, value: object, /) -> bool: ...
337341
def __ne__(self, value: object, /) -> bool: ...
@@ -844,6 +848,8 @@ class bytearray(MutableSequence[int]):
844848
def __alloc__(self) -> int: ...
845849
def __buffer__(self, flags: int, /) -> memoryview: ...
846850
def __release_buffer__(self, buffer: memoryview, /) -> None: ...
851+
if sys.version_info >= (3, 14):
852+
def resize(self, size: int, /) -> None: ...
847853

848854
_IntegerFormats: TypeAlias = Literal[
849855
"b", "B", "@b", "@B", "h", "H", "@h", "@H", "i", "I", "@i", "@I", "l", "L", "@l", "@L", "q", "Q", "@q", "@Q", "P", "@P"

0 commit comments

Comments
 (0)