Skip to content

Commit 578af27

Browse files
authored
add types.GenericAlias.__mro_entries__ (#13284)
1 parent 1012870 commit 578af27

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

stdlib/@tests/stubtest_allowlists/common.txt

-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ turtle.ScrolledCanvas.select_item # Dynamically created, has unnecessary *args
459459

460460
types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
461461
types.GenericAlias.__getattr__
462-
types.GenericAlias.__mro_entries__
463462

464463
typing.type_check_only # typing decorator that is not available at runtime
465464

stdlib/types.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ if sys.version_info >= (3, 9):
640640
def __getitem__(self, typeargs: Any, /) -> GenericAlias: ...
641641
def __eq__(self, value: object, /) -> bool: ...
642642
def __hash__(self) -> int: ...
643+
def __mro_entries__(self, bases: Iterable[object], /) -> tuple[type, ...]: ...
643644
if sys.version_info >= (3, 11):
644645
@property
645646
def __unpacked__(self) -> bool: ...

0 commit comments

Comments
 (0)