10000 Update typing_extensions to 4.13.0rc1 by srittau · Pull Request #13671 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Update typing_extensions to 4.13.0rc1 #13671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 19, 2025
Prev Previous commit
Next Next commit
Use type[object]
  • Loading branch information
srittau committed Mar 19, 2025
commit 60c3bc57ab115c5fd8bbfbb6ddd135b1e29b5f94
2 changes: 1 addition & 1 deletion stdlib/inspect.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class Signature:

if sys.version_info >= (3, 10):
def get_annotations(
obj: Callable[..., object] | type[Any] | ModuleType, # any callable, class, or module
obj: Callable[..., object] | type[object] | ModuleType, # any callable, class, or module
*,
globals: Mapping[str, Any] | None = None, # value types depend on the key
locals: Mapping[str, Any] | None = None, # value types depend on the key
Expand Down
4 changes: 2 additions & 2 deletions stdlib/typing_extensions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ class Format(enum.IntEnum):

# PEP 649/749
def get_annotations(
obj: Callable[..., object] | type[Any] | ModuleType, # any callable, class, or module
obj: Callable[..., object] | type[object] | ModuleType, # any callable, class, or module
*,
globals: Mapping[str, Any] | None = None, # value types depend on the key
locals: Mapping[str, Any] | None = None, # value types depend on the key
Expand All @@ -622,7 +622,7 @@ def get_annotations(
def evaluate_forward_ref(
forward_ref: ForwardRef,
*,
owner: Callable[..., object] | type[Any] | ModuleType | None = None, # any callable, class, or module
owner: Callable[..., object] | type[object] | ModuleType | None = None, # any callable, class, or module
globals: Mapping[str, Any] | None = None, # value types depend on the key
locals: Mapping[str, Any] | None = None, # value types depend on the key
type_params: Iterable[TypeVar | ParamSpec | TypeVarTuple] | None = None,
Expand Down
0