Skip to content

fragments_fromstring should return a List #81

@nwalters512

Description

@nwalters512

Per the lxml source code, fragments_fromstring should return a List:

https://github.com/lxml/lxml/blob/d5593c118856d3eba1eef181e3e0c666ded11f35/src/lxml/html/__init__.py#L770-L772

However, the type stubs here declare it as returning an _Element:

def fragments_fromstring(
html: "_AnyStr",
no_leading_text: bool = ...,
base_url: str = ...,
parser: "_BaseParser" = ...,
**kw
) -> "_Element": ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions