Skip to content

Commit

Permalink
Fix unused classes in a typing test (GH-102437)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
miss-islington and JosephSBoyle authored Mar 5, 2023
1 parent e748f9e commit c957128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2916,8 +2916,8 @@ class DI:
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):
Expand Down

0 comments on commit c957128

Please sign in to comment.