drop ellipsis assignments from module vars, classvars and instance attrs (#5914)

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
Oleg Höfling
2021-08-11 19:26:58 +02:00
committed by GitHub
parent 6c41e3cead
commit 64f481189f
34 changed files with 325 additions and 325 deletions

View File

@@ -6,17 +6,17 @@ from typing_extensions import Final
_T = TypeVar("_T")
WSP: Final[Set[str]] = ...
CFWS_LEADER: Final[Set[str]] = ...
SPECIALS: Final[Set[str]] = ...
ATOM_ENDS: Final[Set[str]] = ...
DOT_ATOM_ENDS: Final[Set[str]] = ...
PHRASE_ENDS: Final[Set[str]] = ...
TSPECIALS: Final[Set[str]] = ...
TOKEN_ENDS: Final[Set[str]] = ...
ASPECIALS: Final[Set[str]] = ...
ATTRIBUTE_ENDS: Final[Set[str]] = ...
EXTENDED_ATTRIBUTE_ENDS: Final[Set[str]] = ...
WSP: Final[Set[str]]
CFWS_LEADER: Final[Set[str]]
SPECIALS: Final[Set[str]]
ATOM_ENDS: Final[Set[str]]
DOT_ATOM_ENDS: Final[Set[str]]
PHRASE_ENDS: Final[Set[str]]
TSPECIALS: Final[Set[str]]
TOKEN_ENDS: Final[Set[str]]
ASPECIALS: Final[Set[str]]
ATTRIBUTE_ENDS: Final[Set[str]]
EXTENDED_ATTRIBUTE_ENDS: Final[Set[str]]
def quote_string(value: Any) -> str: ...
@@ -24,10 +24,10 @@ if sys.version_info >= (3, 7):
rfc2047_matcher: Pattern[str]
class TokenList(List[Union[TokenList, Terminal]]):
token_type: str | None = ...
syntactic_break: bool = ...
ew_combine_allowed: bool = ...
defects: list[MessageDefect] = ...
token_type: str | None
syntactic_break: bool
ew_combine_allowed: bool
defects: list[MessageDefect]
def __init__(self, *args: Any, **kw: Any) -> None: ...
@property
def value(self) -> str: ...
@@ -49,32 +49,32 @@ class WhiteSpaceTokenList(TokenList):
def comments(self) -> list[str]: ...
class UnstructuredTokenList(TokenList):
token_type: str = ...
token_type: str
class Phrase(TokenList):
token_type: str = ...
token_type: str
class Word(TokenList):
token_type: str = ...
token_type: str
class CFWSList(WhiteSpaceTokenList):
token_type: str = ...
token_type: str
class Atom(TokenList):
token_type: str = ...
token_type: str
class Token(TokenList):
token_type: str = ...
encode_as_ew: bool = ...
token_type: str
encode_as_ew: bool
class EncodedWord(TokenList):
token_type: str = ...
cte: str | None = ...
charset: str | None = ...
lang: str | None = ...
token_type: str
cte: str | None
charset: str | None
lang: str | None
class QuotedString(TokenList):
token_type: str = ...
token_type: str
@property
def content(self) -> str: ...
@property
@@ -83,12 +83,12 @@ class QuotedString(TokenList):
def stripped_value(self) -> str: ...
class BareQuotedString(QuotedString):
token_type: str = ...
token_type: str
@property
def value(self) -> str: ...
class Comment(WhiteSpaceTokenList):
token_type: str = ...
token_type: str
def quote(self, value: Any) -> str: ...
@property
def content(self) -> str: ...
@@ -96,7 +96,7 @@ class Comment(WhiteSpaceTokenList):
def comments(self) -> list[str]: ...
class AddressList(TokenList):
token_type: str = ...
token_type: str
@property
def addresses(self) -> list[Address]: ...
@property
@@ -105,7 +105,7 @@ class AddressList(TokenList):
def all_mailboxes(self) -> list[Mailbox]: ...
class Address(TokenList):
token_type: str = ...
token_type: str
@property
def display_name(self) -> str: ...
@property
@@ -114,21 +114,21 @@ class Address(TokenList):
def all_mailboxes(self) -> list[Mailbox]: ...
class MailboxList(TokenList):
token_type: str = ...
token_type: str
@property
def mailboxes(self) -> list[Mailbox]: ...
@property
def all_mailboxes(self) -> list[Mailbox]: ...
class GroupList(TokenList):
token_type: str = ...
token_type: str
@property
def mailboxes(self) -> list[Mailbox]: ...
@property
def all_mailboxes(self) -> list[Mailbox]: ...
class Group(TokenList):
token_type: str = ...
token_type: str
@property
def mailboxes(self) -> list[Mailbox]: ...
@property
@@ -137,7 +137,7 @@ class Group(TokenList):
def display_name(self) -> str: ...
class NameAddr(TokenList):
token_type: str = ...
token_type: str
@property
def display_name(self) -> str: ...
@property
@@ -150,7 +150,7 @@ class NameAddr(TokenList):
def addr_spec(self) -> str: ...
class AngleAddr(TokenList):
token_type: str = ...
token_type: str
@property
def local_part(self) -> str: ...
@property
@@ -161,12 +161,12 @@ class AngleAddr(TokenList):
def addr_spec(self) -> str: ...
class ObsRoute(TokenList):
token_type: str = ...
token_type: str
@property
def domains(self) -> list[Domain]: ...
class Mailbox(TokenList):
token_type: str = ...
token_type: str
@property
def display_name(self) -> str: ...
@property
@@ -179,35 +179,35 @@ class Mailbox(TokenList):
def addr_spec(self) -> str: ...
class InvalidMailbox(TokenList):
token_type: str = ...
token_type: str
@property
def display_name(self) -> None: ...
local_part: None = ...
domain: None = ...
route: None = ...
addr_spec: None = ...
local_part: None
domain: None
route: None
addr_spec: None
class Domain(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
@property
def domain(self) -> str: ...
class DotAtom(TokenList):
token_type: str = ...
token_type: str
class DotAtomText(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
if sys.version_info >= (3, 8):
class NoFoldLiteral(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
class AddrSpec(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
@property
def local_part(self) -> str: ...
@property
@@ -218,115 +218,115 @@ class AddrSpec(TokenList):
def addr_spec(self) -> str: ...
class ObsLocalPart(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
class DisplayName(Phrase):
token_type: str = ...
ew_combine_allowed: bool = ...
token_type: str
ew_combine_allowed: bool
@property
def display_name(self) -> str: ...
@property
def value(self) -> str: ...
class LocalPart(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
@property
def value(self) -> str: ...
@property
def local_part(self) -> str: ...
class DomainLiteral(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
@property
def domain(self) -> str: ...
@property
def ip(self) -> str: ...
class MIMEVersion(TokenList):
token_type: str = ...
major: int | None = ...
minor: int | None = ...
token_type: str
major: int | None
minor: int | None
class Parameter(TokenList):
token_type: str = ...
sectioned: bool = ...
extended: bool = ...
charset: str = ...
token_type: str
sectioned: bool
extended: bool
charset: str
@property
def section_number(self) -> int: ...
@property
def param_value(self) -> str: ...
class InvalidParameter(Parameter):
token_type: str = ...
token_type: str
class Attribute(TokenList):
token_type: str = ...
token_type: str
@property
def stripped_value(self) -> str: ...
class Section(TokenList):
token_type: str = ...
number: int | None = ...
token_type: str
number: int | None
class Value(TokenList):
token_type: str = ...
token_type: str
@property
def stripped_value(self) -> str: ...
class MimeParameters(TokenList):
token_type: str = ...
syntactic_break: bool = ...
token_type: str
syntactic_break: bool
@property
def params(self) -> Iterator[Tuple[str, str]]: ...
class ParameterizedHeaderValue(TokenList):
syntactic_break: bool = ...
syntactic_break: bool
@property
def params(self) -> Iterable[Tuple[str, str]]: ...
class ContentType(ParameterizedHeaderValue):
token_type: str = ...
as_ew_allowed: bool = ...
maintype: str = ...
subtype: str = ...
token_type: str
as_ew_allowed: bool
maintype: str
subtype: str
class ContentDisposition(ParameterizedHeaderValue):
token_type: str = ...
as_ew_allowed: bool = ...
content_disposition: Any = ...
token_type: str
as_ew_allowed: bool
content_disposition: Any
class ContentTransferEncoding(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
cte: str = ...
token_type: str
as_ew_allowed: bool
cte: str
class HeaderLabel(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
if sys.version_info >= (3, 8):
class MsgID(TokenList):
token_type: str = ...
as_ew_allowed: bool = ...
token_type: str
as_ew_allowed: bool
def fold(self, policy: Policy) -> str: ...
class MessageID(MsgID):
token_type: str = ...
token_type: str
class InvalidMessageID(MessageID):
token_type: str = ...
token_type: str
class Header(TokenList):
token_type: str = ...
token_type: str
class Terminal(str):
as_ew_allowed: bool = ...
ew_combine_allowed: bool = ...
syntactic_break: bool = ...
token_type: str = ...
defects: list[MessageDefect] = ...
as_ew_allowed: bool
ew_combine_allowed: bool
syntactic_break: bool
token_type: str
defects: list[MessageDefect]
def __new__(cls: Type[_T], value: str, token_type: str) -> _T: ...
def pprint(self) -> None: ...
@property