mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 22:31:12 +08:00
Use plain bytes instead of ByteString in 3/builtins.pyi.
This commit is contained in:
@@ -298,7 +298,7 @@ class bytes(ByteString):
|
||||
@classmethod
|
||||
def fromhex(cls, s: str) -> bytes: ...
|
||||
@classmethod
|
||||
def maketrans(cls, frm: ByteString, to: ByteString) -> bytes: ...
|
||||
def maketrans(cls, frm: bytes, to: bytes) -> bytes: ...
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[int]: ...
|
||||
@@ -371,7 +371,7 @@ class bytearray(MutableSequence[int], ByteString):
|
||||
@classmethod
|
||||
def fromhex(cls, s: str) -> bytearray: ...
|
||||
@classmethod
|
||||
def maketrans(cls, frm: ByteString, to: ByteString) -> bytes: ...
|
||||
def maketrans(cls, frm: bytes, to: bytes) -> bytes: ...
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[int]: ...
|
||||
|
||||
Reference in New Issue
Block a user