Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fragments_fromstring should return a List #81

Open
nwalters512 opened this issue Feb 8, 2023 · 0 comments
Open

fragments_fromstring should return a List #81

nwalters512 opened this issue Feb 8, 2023 · 0 comments

Comments

@nwalters512
Copy link

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": ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant