Skip to content

Commit d4a372b

Browse files
committed
Remove __class_getitem__ from _pyio.py too; and don't test for IOBase
1 parent a05d9ae commit d4a372b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Lib/_pyio.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,6 @@ def _unsupported(self, name):
341341
raise UnsupportedOperation("%s.%s() not supported" %
342342
(self.__class__.__name__, name))
343343

344-
def __class_getitem__(cls, item):
345-
"""Internal: PEP 585."""
346-
return types.GenericAlias(cls, item)
347-
348344
### Positioning ###
349345

350346
def seek(self, pos, whence=0):

Lib/test/test_genericalias.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
)
88
from collections.abc import *
99
from contextlib import AbstractContextManager, AbstractAsyncContextManager
10-
from io import IOBase
1110
from re import Pattern, Match
1211
from types import GenericAlias
1312

@@ -21,7 +20,6 @@ def test_subscriptable(self):
2120
for t in (type, tuple, list, dict, set, frozenset,
2221
defaultdict, deque,
2322
OrderedDict, Counter, UserDict, UserList,
24-
IOBase,
2523
Pattern, Match,
2624
AbstractContextManager, AbstractAsyncContextManager,
2725
Awaitable, Coroutine,

0 commit comments

Comments
 (0)