8000 email: improve bytes handling by JelleZijlstra · Pull Request #9032 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

email: improve bytes handling #9032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
accept str in header_length
  • Loading branch information
JelleZijlstra committed Nov 1, 2022
commit 2e5c4b7b3e7a89239e25a7bff3da6aa07ece44de
2 changes: 1 addition & 1 deletion stdlib/email/base64mime.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ __all__ = ["body_decode", "body_encode", "decode", "decodestring", "header_encod

from _typeshed import ReadableBuffer

def header_length(bytearray: bytes | bytearray) -> int: ...
def header_length(bytearray: str | bytes | bytearray) -> int: ...
def header_encode(header_bytes: str | ReadableBuffer, charset: str = ...) -> str: ...

# First argument should be a buffer that supports slicing and len().
Expand Down
0