Update builtins to 3.14 (#14161)

This commit is contained in:
sobolevn
2025-05-27 01:47:09 +03:00
committed by GitHub
parent 4a62654941
commit d574139e6c
2 changed files with 7 additions and 3 deletions
@@ -8,8 +8,6 @@ _thread.RLock.locked
_thread.set_name
asyncio.eager_task_factory
asyncio.tasks.eager_task_factory
builtins.bytearray.resize
builtins.int.__round__
compression.gzip.GzipFile.readinto
compression.gzip.GzipFile.readinto
compression.gzip.GzipFile.readinto1
+7 -1
View File
@@ -331,7 +331,11 @@ class int:
def __trunc__(self) -> int: ...
def __ceil__(self) -> int: ...
def __floor__(self) -> int: ...
def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
if sys.version_info >= (3, 14):
def __round__(self, ndigits: SupportsIndex | None = None, /) -> int: ...
else:
def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
def __getnewargs__(self) -> tuple[int]: ...
def __eq__(self, value: object, /) -> bool: ...
def __ne__(self, value: object, /) -> bool: ...
@@ -844,6 +848,8 @@ class bytearray(MutableSequence[int]):
def __alloc__(self) -> int: ...
def __buffer__(self, flags: int, /) -> memoryview: ...
def __release_buffer__(self, buffer: memoryview, /) -> None: ...
if sys.version_info >= (3, 14):
def resize(self, size: int, /) -> None: ...
_IntegerFormats: TypeAlias = Literal[
"b", "B", "@b", "@B", "h", "H", "@h", "@H", "i", "I", "@i", "@I", "l", "L", "@l", "@L", "q", "Q", "@q", "@Q", "P", "@P"