mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Implement fromhex and maketrans method
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user