Skip to content
Merged
Show file tree
Hide file tree
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: 0 additions & 2 deletions Lib/mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -2090,8 +2090,6 @@ def closed(self):
return False
return self._file.closed

__class_getitem__ = classmethod(GenericAlias)


class _PartialFile(_ProxyFile):
"""A read-only wrapper of part of a file."""
Expand Down
4 changes: 2 additions & 2 deletions Lib/test/test_genericalias.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from functools import partial, partialmethod, cached_property
from graphlib import TopologicalSorter
from logging import LoggerAdapter, StreamHandler
from mailbox import Mailbox, _PartialFile
from mailbox import Mailbox
try:
import ctypes
except ImportError:
Expand Down Expand Up @@ -117,7 +117,7 @@ class BaseTest(unittest.TestCase):
Iterable, Iterator,
Reversible,
Container, Collection,
Mailbox, _PartialFile,
Mailbox,
ContextVar, Token,
Field,
Set, MutableSet,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The internal class ``mailbox._ProxyFile`` is no longer a parameterized generic.
Loading