diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 32a596616..d417bce3b 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -295,8 +295,10 @@ class bytes(ByteString): def translate(self, table: bytes) -> bytes: ... def upper(self) -> bytes: ... def zfill(self, width: int) -> bytes: ... - # TODO fromhex - # TODO maketrans + @classmethod + def fromhex(cls, s: str) -> bytes: ... + @classmethod + def maketrans(cls, frm: ByteString, to: ByteString) -> bytes: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[int]: ... @@ -366,8 +368,10 @@ class bytearray(MutableSequence[int], ByteString): def translate(self, table: bytes) -> bytearray: ... def upper(self) -> bytearray: ... def zfill(self, width: int) -> bytearray: ... - # TODO fromhex - # TODO maketrans + @classmethod + def fromhex(cls, s: str) -> bytearray: ... + @classmethod + def maketrans(cls, frm: ByteString, to: ByteString) -> bytes: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[int]: ...