Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove type specialization
  • Loading branch information
srittau committed Nov 3, 2025
commit 6504bdd342fefbee0575c90c257966a1f5df6ec7
6 changes: 3 additions & 3 deletions stdlib/mailbox.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Maildir(Mailbox[MaildirMessage]):
def __setitem__(self, key: str, message: _MessageData | MaildirMessage) -> None: ...
def get_message(self, key: str) -> MaildirMessage: ...
def get_bytes(self, key: str) -> bytes: ...
def get_file(self, key: str) -> _ProxyFile[bytes]: ...
def get_file(self, key: str) -> _ProxyFile: ...
if sys.version_info >= (3, 13):
def get_info(self, key: str) -> str: ...
def set_info(self, key: str, info: str) -> None: ...
Expand Down Expand Up @@ -174,7 +174,7 @@ class _singlefileMailbox(Mailbox[_MessageT_co], metaclass=ABCMeta):

class _mboxMMDF(_singlefileMailbox[_MessageT_co]):
def get_message(self, key: str) -> _MessageT_co: ...
def get_file(self, key: str, from_: bool = False) -> _PartialFile[bytes]: ...
def get_file(self, key: str, from_: bool = False) -> _PartialFile: ...
def get_bytes(self, key: str, from_: bool = False) -> bytes: ...
def get_string(self, key: str, from_: bool = False) -> str: ...

Expand All @@ -197,7 +197,7 @@ class MH(Mailbox[MHMessage]):
def __setitem__(self, key: str, message: _MessageData) -> None: ...
def get_message(self, key: str) -> MHMessage: ...
def get_bytes(self, key: str) -> bytes: ...
def get_file(self, key: str) -> _ProxyFile[bytes]: ...
def get_file(self, key: str) -> _ProxyFile: ...
def iterkeys(self) -> Iterator[str]: ...
def __contains__(self, key: str) -> bool: ...
def __len__(self) -> int: ...
Expand Down