Skip to content

Commit c957128

Browse files
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. (cherry picked from commit 7894bbe) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Automerge-Triggered-By: GH:AlexWaygood
1 parent e748f9e commit c957128

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
@@ -2916,8 +2916,8 @@ class DI:
29162916
def __init__(self):
29172917
self.x = None
29182918

2919-
self.assertIsInstance(C(), P)
2920-
self.assertIsInstance(D(), P)
2919+
self.assertIsInstance(CI(), P)
2920+
self.assertIsInstance(DI(), P)
29212921

29222922
def test_protocols_in_unions(self):
29232923
class P(Protocol):

0 commit comments

Comments
 (0)