From b418c1c3ba6e85b07e40d7904954b0a89f4ce960 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 21 Jul 2022 12:32:15 -0700 Subject: [PATCH] beautifulsoup4: Fix type of Tag.__iter__ (#8357) --- stubs/beautifulsoup4/bs4/element.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/beautifulsoup4/bs4/element.pyi b/stubs/beautifulsoup4/bs4/element.pyi index 5f7521349..3015a7759 100644 --- a/stubs/beautifulsoup4/bs4/element.pyi +++ b/stubs/beautifulsoup4/bs4/element.pyi @@ -281,7 +281,7 @@ class Tag(PageElement): def has_attr(self, key: str) -> bool: ... def __hash__(self) -> int: ... def __getitem__(self, key: str) -> str | list[str]: ... - def __iter__(self) -> Iterable[PageElement]: ... + def __iter__(self) -> Iterator[PageElement]: ... def __len__(self) -> int: ... def __contains__(self, x: object) -> bool: ... def __bool__(self) -> bool: ...