Skip to content

Commit 7894bbe

Browse files
authored
Fix unused classes in a typing test (GH-102437)
As part of investigation issue #102433, I discovered what I believe to be an error where two classes `CI` and `DI` are not being used. The assertions beneath them act on `C` and `D`, duplicating existing assertions in this test. Automerge-Triggered-By: GH:AlexWaygood
1 parent 9a478be commit 7894bbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_typing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2921,8 +2921,8 @@ class DI:
29212921
def __init__(self):
29222922
self.x = None
29232923

2924-
self.assertIsInstance(C(), P)
2925-
self.assertIsInstance(D(), P)
2924+
self.assertIsInstance(CI(), P)
2925+
self.assertIsInstance(DI(), P)
29262926

29272927
def test_protocols_in_unions(self):
29282928
class P(Protocol):

0 commit comments

Comments
 (0)