Fix unused classes in a typing test (GH-102437)

As part of investigation issue https://github.com/python/cpython/issues/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
This commit is contained in:
JosephSBoyle 2023-03-05 15:07:44 +00:00 committed by GitHub
parent 9a478be1a4
commit 7894bbe94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2921,8 +2921,8 @@ class ProtocolTests(BaseTestCase):
def __init__(self):
self.x = None
self.assertIsInstance(C(), P)
self.assertIsInstance(D(), P)
self.assertIsInstance(CI(), P)
self.assertIsInstance(DI(), P)
def test_protocols_in_unions(self):
class P(Protocol):