mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Update builtins to 3.14 (#14161)
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user