Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/imaplib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class IMAP4:
def socket(self) -> _socket: ...
def recent(self) -> _CommandResults: ...
def response(self, code: str) -> _CommandResults: ...
def append(self, mailbox: str, flags: str, date_time: str, message: ReadableBuffer) -> str: ...
def append(self, mailbox: str, flags: str, date_time: str, message: ReadableBuffer) -> tuple[str, list[bytes]]: ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alias is used for builtins.list in this file to avoid naming conflict with list method

Suggested change
def append(self, mailbox: str, flags: str, date_time: str, message: ReadableBuffer) -> tuple[str, list[bytes]]: ...
def append(self, mailbox: str, flags: str, date_time: str, message: ReadableBuffer) -> tuple[str, _list[bytes]]: ...

def authenticate(self, mechanism: str, authobject: Callable[[bytes], bytes | None]) -> tuple[str, str]: ...
def capability(self) -> _CommandResults: ...
def check(self) -> _CommandResults: ...
Expand Down