Skip to content

Commit 800d080

Browse files
committed
Add comment to type: ignore comment on case TestResults()
1 parent 87c3e8e commit 800d080

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/libregrtest/single.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def regrtest_runner(result: TestResult, test_func, runtests: RunTests) -> None:
5555
stats: TestStats | None
5656

5757
match test_result:
58+
# TestResults is imported from test.support, so mypy isn't aware that it's a class
59+
# mypy error: 'Expected type in class pattern; found "Any" [misc]'
5860
case TestStats(): # type: ignore[misc]
5961
stats = test_result
6062
case unittest.TestResult():

0 commit comments

Comments
 (0)