Skip to content

Commit

Permalink
add types.GenericAlias.__mro_entries__ (#13284)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungol authored Jan 15, 2025
1 parent 1012870 commit 578af27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion stdlib/@tests/stubtest_allowlists/common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ turtle.ScrolledCanvas.select_item # Dynamically created, has unnecessary *args

types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
types.GenericAlias.__getattr__
types.GenericAlias.__mro_entries__

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

Expand Down
1 change: 1 addition & 0 deletions stdlib/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ if sys.version_info >= (3, 9):
def __getitem__(self, typeargs: Any, /) -> GenericAlias: ...
def __eq__(self, value: object, /) -> bool: ...
def __hash__(self) -> int: ...
def __mro_entries__(self, bases: Iterable[object], /) -> tuple[type, ...]: ...
if sys.version_info >= (3, 11):
@property
def __unpacked__(self) -> bool: ...
Expand Down

0 comments on commit 578af27

Please sign in to comment.