Skip to content

Commit b6db511

Browse files
authored
Accept memoryview in email.base64mime.body_encode (#16653)
1 parent be1b284 commit b6db511

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎stdlib/email/base64mime.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def header_length(bytearray: str | bytes | bytearray) -> int: ...
66
def header_encode(header_bytes: str | ReadableBuffer, charset: str = "iso-8859-1") -> str: ...
77

88
# First argument should be a buffer that supports slicing and len().
9-
def body_encode(s: bytes | bytearray, maxlinelen: int = 76, eol: str = "\n") -> str: ...
9+
def body_encode(s: bytes | bytearray | memoryview, maxlinelen: int = 76, eol: str = "\n") -> str: ...
1010
def decode(string: str | ReadableBuffer) -> bytes: ...
1111

1212
body_decode = decode

0 commit comments

Comments
 (0)