mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 18:42:41 +08:00
Use plain bytes instead of ByteString in 3/builtins.pyi.
This commit is contained in:
1 parent
23adcaf4f4
commit
cf82278301
1 file changed
+2
-2
@@ -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