Remove many redundant inheritances from Generic[] (#10933)

This commit is contained in:
Alex Waygood
2023-10-26 19:07:20 +01:00
committed by GitHub
parent 5dbdd59c9b
commit a08d4c8d2e
30 changed files with 81 additions and 81 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import Incomplete, ReadableBuffer
from collections.abc import Callable, Iterable, Iterator
from re import Pattern
from typing import Any, Generic, TypeVar, overload
from typing import Any, TypeVar, overload
from typing_extensions import Self, TypeAlias
from . import BeautifulSoup
@@ -372,7 +372,7 @@ class SoupStrainer:
searchTag = search_tag
def search(self, markup: PageElement | Iterable[PageElement]): ...
class ResultSet(list[_PageElementT], Generic[_PageElementT]):
class ResultSet(list[_PageElementT]):
source: SoupStrainer
@overload
def __init__(self, source: SoupStrainer) -> None: ...