Skip to content

Commit d097b16

Browse files
authored
[mailbox] Remove _ProxyFile.__class_getitem__ in Python 3.15 (#16322)
Source: python/cpython#140838
1 parent dcc366e commit d097b16

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/@tests/stubtest_allowlists/py315.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ _frozen_importlib_external.SourceLoader.source_to_code
88
dataclasses.MISSING
99
dataclasses._MISSING_TYPE
1010
dataclasses.field
11-
mailbox._ProxyFile.__class_getitem__
1211

1312
# =============================================================
1413
# Allowlist entries that cannot or should not be fixed; >= 3.15

stdlib/mailbox.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ class _ProxyFile:
294294
def flush(self) -> None: ...
295295
@property
296296
def closed(self) -> bool: ...
297-
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
297+
if sys.version_info < (3, 15):
298+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
298299

299300
class _PartialFile(_ProxyFile):
300301
def __init__(self, f: _GetFileReturn, start: int | None = None, stop: int | None = None) -> None: ...

0 commit comments

Comments
 (0)