Skip to content

Commit 87d5661

Browse files
committed
Get rid of the unbound kkk: K field in a test
1 parent 805335f commit 87d5661

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

tests/test_type_dir.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class AnotherBase[I]:
3434
iii: OrGotcha[StrForInt[I]]
3535

3636

37-
class Base[T]:
38-
# This K is dodgy
39-
K = TypeVar("K")
37+
# This K is dodgy
38+
K = TypeVar("K")
39+
4040

41+
class Base[T]:
4142
t: dict[str, StrForInt[T]]
42-
kkk: K
4343

4444
fin: typing.Final[int]
4545

@@ -201,7 +201,6 @@ class Final:
201201
last: int | typing.Literal[True]
202202
iii: str | int | typing.Literal['gotcha!']
203203
t: dict[str, str | int | typing.Literal['gotcha!']]
204-
kkk: ~K
205204
fin: typing.Final[int]
206205
x: tests.test_type_dir.Wrapper[int | None]
207206
ordinary: str
@@ -234,7 +233,6 @@ class AllOptional[tests.test_type_dir.Final]:
234233
last: int | typing.Literal[True] | None
235234
iii: str | int | typing.Literal['gotcha!'] | None
236235
t: dict[str, str | int | typing.Literal['gotcha!']] | None
237-
kkk: ~K | None
238236
fin: typing.Final[int | None]
239237
x: tests.test_type_dir.Wrapper[int | None] | None
240238
ordinary: str | None
@@ -249,7 +247,6 @@ class Capitalize[tests.test_type_dir.Final]:
249247
LAST: int | typing.Literal[True]
250248
III: str | int | typing.Literal['gotcha!']
251249
T: dict[str, str | int | typing.Literal['gotcha!']]
252-
KKK: ~K
253250
FIN: typing.Final[int]
254251
X: tests.test_type_dir.Wrapper[int | None]
255252
ORDINARY: str
@@ -276,7 +273,6 @@ class NoLiterals1[tests.test_type_dir.Final]:
276273
last: int
277274
iii: str | int
278275
t: dict[str, str | int | typing.Literal['gotcha!']]
279-
kkk: ~K
280276
fin: typing.Final[int]
281277
x: tests.test_type_dir.Wrapper[int | None]
282278
ordinary: str
@@ -291,7 +287,6 @@ class NoLiterals2[tests.test_type_dir.Final]:
291287
last: int
292288
iii: str | int
293289
t: dict[str, str | int | typing.Literal['gotcha!']]
294-
kkk: ~K
295290
fin: typing.Final[int]
296291
x: tests.test_type_dir.Wrapper[int | None]
297292
ordinary: str

0 commit comments

Comments
 (0)