Skip to content

Commit

Permalink
Fix return type for GenericAlias.__origin__ for type aliases paramete…
Browse files Browse the repository at this point in the history
…rised with a type (#13619)
  • Loading branch information
danpascu authored Mar 11, 2025
1 parent 1a9eef4 commit d04d532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ from importlib.machinery import ModuleSpec

# pytype crashes if types.MappingProxyType inherits from collections.abc.Mapping instead of typing.Mapping
from typing import Any, ClassVar, Literal, Mapping, TypeVar, final, overload # noqa: Y022
from typing_extensions import ParamSpec, Self, TypeVarTuple, deprecated
from typing_extensions import ParamSpec, Self, TypeAliasType, TypeVarTuple, deprecated

__all__ = [
"FunctionType",
Expand Down Expand Up @@ -650,7 +650,7 @@ def coroutine(func: _Fn) -> _Fn: ...
if sys.version_info >= (3, 9):
class GenericAlias:
@property
def __origin__(self) -> type: ...
def __origin__(self) -> type | TypeAliasType: ...
@property
def __args__(self) -> tuple[Any, ...]: ...
@property
Expand Down

0 comments on commit d04d532

Please sign in to comment.