mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
bs4: NavigableString accepts ReadableBuffer (#10106)
It delegates to str.__new__.
This commit is contained in:
@@ -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
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user