mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Let email.message.MIMEPart inherit from Message (#2103)
Also removes some duplication.
This commit is contained in:
committed by
Jelle Zijlstra
parent
09008599ce
commit
2df4a32cf5
@@ -89,11 +89,7 @@ class Message:
|
||||
else:
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class MIMEPart:
|
||||
if sys.version_info >= (3, 3):
|
||||
def __init__(self, policy: Policy = ...) -> None: ...
|
||||
else:
|
||||
def __init__(self) -> None: ...
|
||||
class MIMEPart(Message):
|
||||
def get_body(self,
|
||||
preferencelist: Sequence[str] = ...) -> Optional[Message]: ...
|
||||
def iter_attachments(self) -> Iterator[Message]: ...
|
||||
@@ -124,7 +120,4 @@ class MIMEPart:
|
||||
@property
|
||||
def is_attachment(self) -> bool: ...
|
||||
|
||||
class EmailMessage(MIMEPart):
|
||||
def set_content(self, *args: Any,
|
||||
content_manager: Optional[ContentManager] = ...,
|
||||
**kw: Any) -> None: ...
|
||||
class EmailMessage(MIMEPart): ...
|
||||
|
||||
Reference in New Issue
Block a user