remove unecessary Iterable base classes (#12810)

This commit is contained in:
Stephen Morton
2024-10-14 16:53:35 -07:00
committed by GitHub
parent e7e9c13c1c
commit a871efd90c
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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: ...