Skip to content

Commit d270bb0

Browse files
Update typing_extensions to 4.15.0rc1 (#14589)
1 parent 4bdb14a commit d270bb0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ stubdefaulter==0.1.0; python_version < "3.14"
2121
termcolor>=2.3
2222
tomli==2.2.1; python_version < "3.11"
2323
tomlkit==0.13.3
24-
typing_extensions>=4.14.0rc1
24+
typing_extensions>=4.15.0rc1
2525
uv==0.8.6
2626

2727
# Utilities for typeshed infrastructure scripts.

stdlib/typing_extensions.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ __all__ = [
120120
"clear_overloads",
121121
"dataclass_transform",
122122
"deprecated",
123+
"disjoint_base",
123124
"Doc",
124125
"evaluate_forward_ref",
125126
"get_overloads",
@@ -150,6 +151,7 @@ __all__ = [
150151
"TypeGuard",
151152
"TypeIs",
152153
"TYPE_CHECKING",
154+
"type_repr",
153155
"Never",
154156
"NoReturn",
155157
"ReadOnly",
@@ -219,6 +221,7 @@ runtime = runtime_checkable
219221
Final: _SpecialForm
220222

221223
def final(f: _F) -> _F: ...
224+
def disjoint_base(cls: _TC) -> _TC: ...
222225

223226
Literal: _SpecialForm
224227

@@ -616,7 +619,7 @@ TypeForm: _SpecialForm
616619
if sys.version_info >= (3, 14):
617620
from typing import evaluate_forward_ref as evaluate_forward_ref
618621

619-
from annotationlib import Format as Format, get_annotations as get_annotations
622+
from annotationlib import Format as Format, get_annotations as get_annotations, type_repr as type_repr
620623
else:
621624
class Format(enum.IntEnum):
622625
VALUE = 1
@@ -684,6 +687,7 @@ else:
684687
format: Format | None = None,
685688
_recursive_guard: Container[str] = ...,
686689
) -> AnnotationForm: ...
690+
def type_repr(value: object) -> str: ...
687691

688692
# PEP 661
689693
class Sentinel:

0 commit comments

Comments
 (0)