Skip to content

Commit b38852e

Browse files
committed
fix typo and style
1 parent 46ab3ac commit b38852e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test_typing_extensions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7452,8 +7452,8 @@ def test_type_params_possibilities(self):
74527452
P = ParamSpec('P')
74537453
P_default = ParamSpec('P_default', default=[str, int])
74547454

7455-
# NOTE: "TypeVars with defaults cannot immediately follow TypeVarTuples"
7456-
# from PEP 696 is currently not enfored for the type statement and are not tested.
7455+
# NOTE: PEP 696 states: "TypeVars with defaults cannot immediately follow TypeVarTuples"
7456+
# this is currently not enforced for the type statement and is not tested.
74577457
# PEP 695: Double usage of the same name is also not enforced and not tested.
74587458
valid_cases = [
74597459
(T, P, Ts),
@@ -7463,13 +7463,13 @@ def test_type_params_possibilities(self):
74637463
(T_default, P_default, Ts_default),
74647464
]
74657465
invalid_cases = [
7466-
((T_default, T), f"non-default type parameter {T!r} follows default"),
7467-
((P_default, P), f"non-default type parameter {P!r} follows default"),
7468-
((Ts_default, T), f"non-default type parameter {T!r} follows default"),
7466+
((T_default, T), f"non-default type parameter {T!r} follows default"),
7467+
((P_default, P), f"non-default type parameter {P!r} follows default"),
7468+
((Ts_default, T), f"non-default type parameter {T!r} follows default"),
74697469

74707470
# Potentially add invalid inputs, e.g. literals or classes
74717471
# depends on upstream
7472-
((1,), "Expected a type param, got 1"),
7472+
((1,), "Expected a type param, got 1"),
74737473
((str,), f"Expected a type param, got {str!r}"),
74747474
]
74757475

0 commit comments

Comments
 (0)