From a871efd90ca2734b3341dde98cffab66f3e08cee Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Mon, 14 Oct 2024 16:53:35 -0700 Subject: [PATCH] remove unecessary Iterable base classes (#12810) --- stdlib/traceback.pyi | 2 +- stdlib/unittest/suite.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/traceback.pyi b/stdlib/traceback.pyi index 2a7ad1752..1c4a59de6 100644 --- a/stdlib/traceback.pyi +++ b/stdlib/traceback.pyi @@ -231,7 +231,7 @@ class TracebackException: if sys.version_info >= (3, 11): def print(self, *, file: SupportsWrite[str] | None = None, chain: bool = True) -> None: ... -class FrameSummary(Iterable[Any]): +class FrameSummary: if sys.version_info >= (3, 11): def __init__( self, diff --git a/stdlib/unittest/suite.pyi b/stdlib/unittest/suite.pyi index c10cbc75d..ff583d076 100644 --- a/stdlib/unittest/suite.pyi +++ b/stdlib/unittest/suite.pyi @@ -5,7 +5,7 @@ from typing_extensions import TypeAlias _TestType: TypeAlias = unittest.case.TestCase | TestSuite -class BaseTestSuite(Iterable[_TestType]): +class BaseTestSuite: _tests: list[unittest.case.TestCase] _removed_tests: int def __init__(self, tests: Iterable[_TestType] = ()) -> None: ...