Reduce code duplication in the email module (#7558)

This commit is contained in:
Alex Waygood
2022-04-06 11:20:14 +01:00
committed by GitHub
parent 1ceb486b75
commit 3c85f36b7f
10 changed files with 31 additions and 35 deletions

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: ...