Skip to content

Commit 6504bdd

Browse files
committed
Remove type specialization
1 parent 0d941e2 commit 6504bdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/mailbox.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Maildir(Mailbox[MaildirMessage]):
137137
def __setitem__(self, key: str, message: _MessageData | MaildirMessage) -> None: ...
138138
def get_message(self, key: str) -> MaildirMessage: ...
139139
def get_bytes(self, key: str) -> bytes: ...
140-
def get_file(self, key: str) -> _ProxyFile[bytes]: ...
140+
def get_file(self, key: str) -> _ProxyFile: ...
141141
if sys.version_info >= (3, 13):
142142
def get_info(self, key: str) -> str: ...
143143
def set_info(self, key: str, info: str) -> None: ...
@@ -174,7 +174,7 @@ class _singlefileMailbox(Mailbox[_MessageT_co], metaclass=ABCMeta):
174174

175175
class _mboxMMDF(_singlefileMailbox[_MessageT_co]):
176176
def get_message(self, key: str) -> _MessageT_co: ...
177-
def get_file(self, key: str, from_: bool = False) -> _PartialFile[bytes]: ...
177+
def get_file(self, key: str, from_: bool = False) -> _PartialFile: ...
178178
def get_bytes(self, key: str, from_: bool = False) -> bytes: ...
179179
def get_string(self, key: str, from_: bool = False) -> str: ...
180180

@@ -197,7 +197,7 @@ class MH(Mailbox[MHMessage]):
197197
def __setitem__(self, key: str, message: _MessageData) -> None: ...
198198
def get_message(self, key: str) -> MHMessage: ...
199199
def get_bytes(self, key: str) -> bytes: ...
200-
def get_file(self, key: str) -> _ProxyFile[bytes]: ...
200+
def get_file(self, key: str) -> _ProxyFile: ...
201201
def iterkeys(self) -> Iterator[str]: ...
202202
def __contains__(self, key: str) -> bool: ...
203203
def __len__(self) -> int: ...

0 commit comments

Comments
 (0)