Skip to content

Commit 8203e22

Browse files
committed
Remove typing_extensions.__mro__
1 parent bfc0508 commit 8203e22

6 files changed

Lines changed: 7 additions & 1 deletion

File tree

stdlib/@tests/stubtest_allowlists/py310.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ _random.Random.__init__ # Issues with __new__/__init__ correspondence
1919

2020
bdb.Breakpoint.clearBreakpoints # Exists at runtime, but missing from stubs
2121

22+
# Only exists for an error message.
23+
typing_extensions.NewType.__mro_entries__
24+
2225

2326
# ============
2427
# 3.10 to 3.11

stdlib/@tests/stubtest_allowlists/py311.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# >= 3.11
88
# =======
99

10+
# Only exists for an error message.
1011
typing.NewType.__mro_entries__
1112

1213

stdlib/@tests/stubtest_allowlists/py312.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typing_extensions.TypeAliasType.__value__
3030
# >= 3.11
3131
# =======
3232

33+
# Only exists for an error message.
3334
typing.NewType.__mro_entries__
3435

3536

stdlib/@tests/stubtest_allowlists/py313.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typing_extensions.TypeAliasType.__value__
3030
# >= 3.11
3131
# =======
3232

33+
# Only exists for an error message.
3334
typing.NewType.__mro_entries__
3435

3536

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ types.SimpleNamespace.__delattr__
4949
# >= 3.11
5050
# =======
5151

52+
# Only exists for an error message.
5253
typing.NewType.__mro_entries__
5354

5455

stdlib/typing_extensions.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ else:
375375
class NewType:
376376
def __init__(self, name: str, tp: AnnotationForm) -> None: ...
377377
def __call__(self, obj: _T, /) -> _T: ...
378-
def __mro_entries__(self, bases: Iterable[object]) -> tuple[type, ...]: ...
379378
__supertype__: type | NewType
380379
__name__: str
381380
if sys.version_info >= (3, 10):

0 commit comments

Comments
 (0)