Skip to content

Commit 94e08e1

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 2a062f2 commit 94e08e1

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
@@ -1528,8 +1528,8 @@ class DI:
15281528
def __init__(self):
15291529
self.x = None
15301530

1531-
self.assertIsInstance(C(), P)
1532-
self.assertIsInstance(D(), P)
1531+
self.assertIsInstance(CI(), P)
1532+
self.assertIsInstance(DI(), P)
15331533

15341534
def test_protocols_in_unions(self):
15351535
class P(Protocol):

0 commit comments

Comments
 (0)