Skip to content

Commit 858d9b3

Browse files
Apply suggestions from code review
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 221092b commit 858d9b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
subscripted objects) had wrong parameters if they were directly
1717
subscripted with an `Unpack` object.
1818
Patch by [Daraan](https://github.com/Daraan).
19-
- Backport to Python 3.10 to support substitution with `...` on Callable
20-
aliases that have a Concatenate argument. Patch by [Daraan](https://github.com/Daraan).
19+
- Backport to Python 3.10 to support substitution with `...` on `Callable`
20+
aliases that have a `Concatenate` argument. Patch by [Daraan](https://github.com/Daraan).
2121

2222
# Release 4.12.2 (June 7, 2024)
2323

src/test_typing_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5401,7 +5401,7 @@ def test_invalid_uses(self):
54015401
):
54025402
Concatenate[1, P]
54035403

5404-
@skipUnless(TYPING_3_10_0, "Missing backported to <=3.9. See issue #48")
5404+
@skipUnless(TYPING_3_10_0, "Missing backport to <=3.9. See issue #48")
54055405
def test_alias_subscription_with_ellipsis(self):
54065406
P = ParamSpec('P')
54075407
X = Callable[Concatenate[int, P], Any]

src/typing_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ def _concatenate_getitem(self, parameters):
18301830
"ParamSpec variable or ellipsis.")
18311831
msg = "Concatenate[arg, ...]: each arg must be a type."
18321832
parameters = tuple(typing._type_check(p, msg) for p in parameters)
1833-
if (3, 10, 2) < sys.version_info < (3,11):
1833+
if (3, 10, 2) < sys.version_info < (3, 11):
18341834
return _ConcatenateGenericAlias(self, parameters,
18351835
_typevar_types=(TypeVar, ParamSpec),
18361836
_paramspec_tvars=True)

0 commit comments

Comments
 (0)