Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c957128

Browse filesBrowse 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
Copy full SHA for c957128

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Lib/test/test_typing.py

Copy file name to clipboardExpand all lines: Lib/test/test_typing.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.