mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from collections.abc import Iterable, Iterator
|
||||
from email.errors import HeaderParseError, MessageDefect
|
||||
from email.policy import Policy
|
||||
@@ -195,10 +194,9 @@ class DotAtomText(TokenList):
|
||||
token_type: str
|
||||
as_ew_allowed: bool
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
class NoFoldLiteral(TokenList):
|
||||
token_type: str
|
||||
as_ew_allowed: bool
|
||||
class NoFoldLiteral(TokenList):
|
||||
token_type: str
|
||||
as_ew_allowed: bool
|
||||
|
||||
class AddrSpec(TokenList):
|
||||
token_type: str
|
||||
@@ -296,17 +294,16 @@ class HeaderLabel(TokenList):
|
||||
token_type: str
|
||||
as_ew_allowed: bool
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
class MsgID(TokenList):
|
||||
token_type: str
|
||||
as_ew_allowed: bool
|
||||
def fold(self, policy: Policy) -> str: ...
|
||||
class MsgID(TokenList):
|
||||
token_type: str
|
||||
as_ew_allowed: bool
|
||||
def fold(self, policy: Policy) -> str: ...
|
||||
|
||||
class MessageID(MsgID):
|
||||
token_type: str
|
||||
class MessageID(MsgID):
|
||||
token_type: str
|
||||
|
||||
class InvalidMessageID(MessageID):
|
||||
token_type: str
|
||||
class InvalidMessageID(MessageID):
|
||||
token_type: str
|
||||
|
||||
class Header(TokenList):
|
||||
token_type: str
|
||||
@@ -375,12 +372,9 @@ def get_group_list(value: str) -> tuple[GroupList, str]: ...
|
||||
def get_group(value: str) -> tuple[Group, str]: ...
|
||||
def get_address(value: str) -> tuple[Address, str]: ...
|
||||
def get_address_list(value: str) -> tuple[AddressList, str]: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def get_no_fold_literal(value: str) -> tuple[NoFoldLiteral, str]: ...
|
||||
def get_msg_id(value: str) -> tuple[MsgID, str]: ...
|
||||
def parse_message_id(value: str) -> MessageID: ...
|
||||
|
||||
def get_no_fold_literal(value: str) -> tuple[NoFoldLiteral, str]: ...
|
||||
def get_msg_id(value: str) -> tuple[MsgID, str]: ...
|
||||
def parse_message_id(value: str) -> MessageID: ...
|
||||
def parse_mime_version(value: str) -> MIMEVersion: ...
|
||||
def get_invalid_parameter(value: str) -> tuple[InvalidParameter, str]: ...
|
||||
def get_ttext(value: str) -> tuple[ValueTerminal, str]: ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
import types
|
||||
from collections.abc import Iterable, Mapping
|
||||
from datetime import datetime as _datetime
|
||||
@@ -7,6 +6,7 @@ from email._header_value_parser import (
|
||||
ContentDisposition,
|
||||
ContentTransferEncoding,
|
||||
ContentType,
|
||||
MessageID,
|
||||
MIMEVersion,
|
||||
TokenList,
|
||||
UnstructuredTokenList,
|
||||
@@ -130,15 +130,12 @@ class ContentTransferEncodingHeader:
|
||||
@staticmethod
|
||||
def value_parser(value: str) -> ContentTransferEncoding: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from email._header_value_parser import MessageID
|
||||
|
||||
class MessageIDHeader:
|
||||
max_count: ClassVar[Literal[1]]
|
||||
@classmethod
|
||||
def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
|
||||
@staticmethod
|
||||
def value_parser(value: str) -> MessageID: ...
|
||||
class MessageIDHeader:
|
||||
max_count: ClassVar[Literal[1]]
|
||||
@classmethod
|
||||
def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
|
||||
@staticmethod
|
||||
def value_parser(value: str) -> MessageID: ...
|
||||
|
||||
class _HeaderParser(Protocol):
|
||||
max_count: ClassVar[Literal[1] | None]
|
||||
|
||||
Reference in New Issue
Block a user