From 99aedf4724627d29e4bbaca9345458c8a6ac977e Mon Sep 17 00:00:00 2001 From: J Rob Gant Date: Thu, 17 Feb 2022 17:46:49 -0500 Subject: [PATCH] Tag.attrs is a dict, instead of an immutable Mapping (#7253) --- stubs/beautifulsoup4/bs4/element.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/beautifulsoup4/bs4/element.pyi b/stubs/beautifulsoup4/bs4/element.pyi index 9bffae817..35d31dce7 100644 --- a/stubs/beautifulsoup4/bs4/element.pyi +++ b/stubs/beautifulsoup4/bs4/element.pyi @@ -1,6 +1,6 @@ from _typeshed import Self from collections.abc import Iterator -from typing import Any, Callable, Generic, Iterable, Mapping, Pattern, TypeVar, Union, overload +from typing import Any, Callable, Generic, Iterable, Pattern, TypeVar, Union, overload from . import BeautifulSoup from .builder import TreeBuilder @@ -234,7 +234,7 @@ class Tag(PageElement): sourceline: int | None sourcepos: int | None known_xml: bool | None - attrs: Mapping[str, str] + attrs: dict[str, str] contents: list[PageElement] hidden: bool can_be_empty_element: bool | None @@ -247,7 +247,7 @@ class Tag(PageElement): name: str | None = ..., namespace: str | None = ..., prefix: str | None = ..., - attrs: Mapping[str, str] | None = ..., + attrs: dict[str, str] | None = ..., parent: Tag | None = ..., previous: PageElement | None = ..., is_xml: bool | None = ...,