Skip to content
Merged
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
18 changes: 14 additions & 4 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down Expand Up @@ -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: ...
Expand Down