Skip to content

Commit

Permalink
bs4: NavigableString accepts ReadableBuffer (#10106)
Browse files Browse the repository at this point in the history
It delegates to str.__new__.
  • Loading branch information
JelleZijlstra authored Apr 29, 2023
1 parent 17edf76 commit 4e52cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/beautifulsoup4/bs4/element.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from _typeshed import Incomplete
from _typeshed import Incomplete, ReadableBuffer
from collections.abc import Callable, Iterable, Iterator
from re import Pattern
from typing import Any, Generic, TypeVar, overload
Expand Down Expand Up @@ -182,7 +182,7 @@ class NavigableString(str, PageElement):
PREFIX: str
SUFFIX: str
known_xml: bool | None
def __new__(cls, value: str | bytes) -> Self: ...
def __new__(cls, value: str | ReadableBuffer) -> Self: ...
def __copy__(self) -> Self: ...
def __getnewargs__(self) -> tuple[str]: ...
def output_ready(self, formatter: Formatter | str | None = "minimal") -> str: ...
Expand Down

0 comments on commit 4e52cf1

Please sign in to comment.