Skip to content

Commit c14567d

Browse files
committed
Updated unpack comment in main code
1 parent cdf7fec commit c14567d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/typing_extensions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,8 +3611,10 @@ def __init__(self, name: str, value, *, type_params=()):
36113611
default_value_encountered = False
36123612
parameters = []
36133613
for type_param in type_params:
3614-
if (not isinstance(type_param, (TypeVar, TypeVarTuple, ParamSpec))
3615-
# The Unpack backport passes aboves check
3614+
if (
3615+
not isinstance(type_param, (TypeVar, TypeVarTuple, ParamSpec))
3616+
# 3.8-3.11
3617+
# Unpack Backport passes isinstance(type_param, TypeVar)
36163618
or _is_unpack(type_param)
36173619
):
36183620
raise TypeError(f"Expected a type param, got {type_param!r}")

0 commit comments

Comments
 (0)