mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 22:09:45 +08:00
Remove many redundant inheritances from Generic[] (#10933)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user