Reduce code duplication in the email module (#7558)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-04-06 12:20:14 +02:00
1 parent 1ceb486b75
commit 3c85f36b7f
10 files changed
+31 -35

No files matched your search

+2 -2
View File
@@ -1,7 +1,8 @@
import datetime
import sys
from email import _ParamType
from email.charset import Charset
from typing import Union, overload
from typing import overload
__all__ = [
"collapse_rfc2231_value",
@@ -21,7 +22,6 @@ __all__ = [
"unquote",
]
_ParamType = Union[str, tuple[str | None, str | None, str]]
_PDTZ = tuple[int, int, int, int, int, int, int, int, int, int | None]
def quote(str: str) -> str: ...