lxml / lxml-stubs

Type stubs for the lxml package
Other
43 stars 28 forks source link

fragments_fromstring should return a List #81

Open nwalters512 opened 1 year ago

nwalters512 commented 1 year ago

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:

https://github.com/lxml/lxml-stubs/blob/0a9b6099dd39b298fd0ff897dbcd4fed632d8776/lxml-stubs/html/__init__.pyi#L75-L81