Skip to content

Commit f647075

Browse files
authored
bytes.translate: generalize delete parameter type (#14372)
bytes.translate: generalize 'delete' parameter type
1 parent e940f85 commit f647075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ class bytes(Sequence[int]):
707707
def strip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
708708
def swapcase(self) -> bytes: ...
709709
def title(self) -> bytes: ...
710-
def translate(self, table: ReadableBuffer | None, /, delete: bytes = b"") -> bytes: ...
710+
def translate(self, table: ReadableBuffer | None, /, delete: ReadableBuffer = b"") -> bytes: ...
711711
def upper(self) -> bytes: ...
712712
def zfill(self, width: SupportsIndex, /) -> bytes: ...
713713
@classmethod

0 commit comments

Comments
 (0)