mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add optional delete argument to bytes.translate and bytearray.translate (#416)
This commit is contained in:
committed by
Guido van Rossum
parent
781b079f91
commit
9795200acc
@@ -306,7 +306,7 @@ class bytes(ByteString):
|
||||
def strip(self, chars: bytes = None) -> bytes: ...
|
||||
def swapcase(self) -> bytes: ...
|
||||
def title(self) -> bytes: ...
|
||||
def translate(self, table: bytes) -> bytes: ...
|
||||
def translate(self, table: bytes, delete: bytes = None) -> bytes: ...
|
||||
def upper(self) -> bytes: ...
|
||||
def zfill(self, width: int) -> bytes: ...
|
||||
@classmethod
|
||||
@@ -379,7 +379,7 @@ class bytearray(MutableSequence[int], ByteString):
|
||||
def strip(self, chars: bytes = None) -> bytearray: ...
|
||||
def swapcase(self) -> bytearray: ...
|
||||
def title(self) -> bytearray: ...
|
||||
def translate(self, table: bytes) -> bytearray: ...
|
||||
def translate(self, table: bytes, delete: bytes = None) -> bytearray: ...
|
||||
def upper(self) -> bytearray: ...
|
||||
def zfill(self, width: int) -> bytearray: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user