Guo Ci
2025-12-04 14:59:52 -05:00
committed by GitHub
parent e56ae65a49
commit a06e16eae2
+14 -4
View File
@@ -731,8 +731,13 @@ class bytes(Sequence[int]):
def translate(self, table: ReadableBuffer | None, /, delete: ReadableBuffer = b"") -> bytes: ...
def upper(self) -> bytes: ...
def zfill(self, width: SupportsIndex, /) -> bytes: ...
@classmethod
def fromhex(cls, string: str, /) -> Self: ...
if sys.version_info >= (3, 14):
@classmethod
def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
else:
@classmethod
def fromhex(cls, string: str, /) -> Self: ...
@staticmethod
def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
def __len__(self) -> int: ...
@@ -836,8 +841,13 @@ class bytearray(MutableSequence[int]):
def translate(self, table: ReadableBuffer | None, /, delete: bytes = b"") -> bytearray: ...
def upper(self) -> bytearray: ...
def zfill(self, width: SupportsIndex, /) -> bytearray: ...
@classmethod
def fromhex(cls, string: str, /) -> Self: ...
if sys.version_info >= (3, 14):
@classmethod
def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
else:
@classmethod
def fromhex(cls, string: str, /) -> Self: ...
@staticmethod
def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
def __len__(self) -> int: ...