Open nwalters512 opened 1 year ago
Per the lxml source code, fragments_fromstring should return a List:
lxml
fragments_fromstring
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:
_Element
https://github.com/lxml/lxml-stubs/blob/0a9b6099dd39b298fd0ff897dbcd4fed632d8776/lxml-stubs/html/__init__.pyi#L75-L81
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