From 9795200acca1ac2a9fa48cb87d4af6e4dd7d059e Mon Sep 17 00:00:00 2001 From: johnklai1 Date: Thu, 28 Jul 2016 23:38:56 -0700 Subject: [PATCH] Add optional delete argument to bytes.translate and bytearray.translate (#416) --- stdlib/3/builtins.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 8293f3f3c..22d9b9cce 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -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