Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99aedf4

Browse filesBrowse files
authored
Tag.attrs is a dict, instead of an immutable Mapping (#7253)
1 parent ae39348 commit 99aedf4
Copy full SHA for 99aedf4

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎stubs/beautifulsoup4/bs4/element.pyi

Copy file name to clipboardExpand all lines: stubs/beautifulsoup4/bs4/element.pyi
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from _typeshed import Self
22
from collections.abc import Iterator
3-
from typing import Any, Callable, Generic, Iterable, Mapping, Pattern, TypeVar, Union, overload
3+
from typing import Any, Callable, Generic, Iterable, Pattern, TypeVar, Union, overload
44

55
from . import BeautifulSoup
66
from .builder import TreeBuilder
@@ -234,7 +234,7 @@ class Tag(PageElement):
234234
sourceline: int | None
235235
sourcepos: int | None
236236
known_xml: bool | None
237-
attrs: Mapping[str, str]
237+
attrs: dict[str, str]
238238
contents: list[PageElement]
239239
hidden: bool
240240
can_be_empty_element: bool | None
@@ -247,7 +247,7 @@ class Tag(PageElement):
247247
name: str | None = ...,
248248
namespace: str | None = ...,
249249
prefix: str | None = ...,
250-
attrs: Mapping[str, str] | None = ...,
250+
attrs: dict[str, str] | None = ...,
251251
parent: Tag | None = ...,
252252
previous: PageElement | None = ...,
253253
is_xml: bool | None = ...,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.